重磅特性 - SpreadJS推出新插件甘特图,预览版下载体验中

摘要:本文由葡萄城技术团队于CSDN原创并首发。转载请注明出处:葡萄城官网,葡萄城为开发者提供专业的开发工具、解决方案和服务,赋能开发者。

甘特图对于业务场景中的工程项目管理、预算执行、生产计划等都能将原有的表格数据,转变为直观的甘特图模式。作为纯前端表格控件SpreadJS 的插件,甘特图可以作为一个特殊的“Sheet”融入已有的表格中,方便进行数据的可视化展示,也能更直观的查看计划执行情况,如下图所示:

SpreadJS甘特图插件具备以下的功能:

1. 基于 SpreadJS 的底层数据模型,能够将树形数据展示为甘特图表格和图表,支持 ID、Level、Children类型数据结构

// the id-parentId structure

schema: {
    
    

hierarchy: {
    
    

type: "Parent",

column: "parentId"

},

columns: {
    
    

id: {
    
     isPrimaryKey: true }, // the primary key is required in Id-ParentId type, so that we could build the hierarchy tree nodes

taskNumber: {
    
     dataType: "rowOrder" } // the row order is required in Id-ParentId type, to make sure the you could update the correct data

}

}

// the level structure

schema: {
    
    

hierarchy: {
    
    

type: "Level",

column: "level"

}

}

// the children tree structure

schema: {
    
    

hierarchy: {
    
    

type: "ChildrenPath",

column: "children"

}

}

2. 支持对图表区域进行缩放

3. 支持按照不同单位进行滚动

4. 可对图表中的对象进行定制

5. 可对日历进行配置

6. 支持保存为 SSJSON / SJS / Excel / PDF,并支持打印功能

如果想参与甘特图的预览版试用,可访问以下地址进行获取:https://gcdn.grapecity.com.cn/showtopic-180313-1-1.html

预览版产品包有以下的内容:

  • 甘特图功能说明文档
  • 7个插件示例:初始化甘特图、缩放及滚动、定制样式、布局设置、任务设置、日历设置、导入导出

扩展链接:

Spring Boot框架下实现Excel服务端导入导出

项目实战:在线报价采购系统(React +SpreadJS+Echarts)

Svelte 框架结合 SpreadJS 实现纯前端类 Excel 在线报表设计

猜你喜欢

转载自blog.csdn.net/powertoolsteam/article/details/132067723