Toggle navigation
任务甘特图
By
T***6
2020-06-05 02:26:58
脚本
16
21
作品使用的第三方脚本
数据管理
上传数据
支持小于 5M 任意格式(csv, xlsx, json, xml, ...)的数据文件
上传后可以通过生成的文件链接异步获取托管的数据。
历史数据
0 条
无历史数据
代码修改记录
信息提示
保存作品
对当前截图不满意?你还可以
上传本地截图
重新截图
作品名称
作品描述
标签
geo
grid
legend
markLine
markPoint
bar
effectScatter
line
lines
map
timeline
title
toolbox
tooltip
visualMap
作品默认版本
最新
16
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
20:11:45
图表已生成
整理代码
刷新
代码
option = { title: { text: '筹开任务全景计划--冠寓成都时代店', x:'center', y:'top', textAlign:'left' }, xAxis: { type: 'time' }, yAxis: { data: [ 'CO/CS到岗铺排', '地图上线', '营业执照办理', '样板间开放', '调研分析', 'KA计划铺排', '营销费用计划', '任务xxxxxx', '任务xxxxxx', '任务xxxxxx', '任务xxxxxx', '任务xxxxxx', '任务xxxxxx', '任务xxxxxx', '任务xxxxxx', 'CO/CS到岗铺排', '地图上线', '营业执照办理', '样板间开放', '调研分析', 'KA计划铺排', '营销费用计划', '任务xxxxxx', '任务xxxxxx', '任务xxxxxx', '任务xxxxxx', '任务xxxxxx', '任务xxxxxx', '任务xxxxxx', '任务xxxxxx', ] }, tooltip: { trigger: 'axis', formatter: function(params) { var res = params[0].name + "" var date0 = params[0].data; var date1 = params[1].data; date0 = date0.getFullYear() + "-" + (date0.getMonth() + 1) + "-" + date0.getDate(); date1 = date1.getFullYear() + "-" + (date1.getMonth() + 1) + "-" + date1.getDate(); res += params[0].seriesName + "~" + params[1].seriesName + ":" + date0 + "~" + date1 + "" console.log(params[0]); return res; } }, series: [{ name: '开始时间', type: 'bar', stack: '总量', itemStyle: { normal: { color: 'rgba(0,0,0,0)' } }, data: [ new Date("2020/09/2"), new Date("2020/09/3"), new Date("2020/09/4"), new Date("2020/09/5"), new Date("2020/09/6"), new Date("2020/09/7"), new Date("2020/09/8"), new Date("2020/09/9"), new Date("2020/09/10"), new Date("2020/09/11"), new Date("2020/09/12"), new Date("2020/09/13"), new Date("2020/09/14"), new Date("2020/09/15"), new Date("2020/09/16"), new Date("2020/09/17"), new Date("2020/09/18"), new Date("2020/09/19"), new Date("2020/09/20"), new Date("2020/09/21"), new Date("2020/09/22"), new Date("2020/09/23"), new Date("2020/09/24"), new Date("2020/09/25"), new Date("2020/09/26"), new Date("2020/09/27"), new Date("2020/09/28"), new Date("2020/09/29"), ] }, { name: '结束时间', type: 'bar', stack: '总量', itemStyle: { normal: { color: '#20B2AA' } }, data: [ new Date("2020/09/12"), new Date("2020/09/13"), new Date("2020/09/14"), new Date("2020/09/15"), new Date("2020/09/16"), new Date("2020/09/17"), new Date("2020/09/18"), new Date("2020/09/19"), new Date("2020/09/20"), new Date("2020/09/21"), new Date("2020/09/22"), new Date("2020/09/23"), new Date("2020/09/24"), new Date("2020/09/25"), new Date("2020/09/26"), new Date("2020/09/27"), new Date("2020/09/28"), new Date("2020/09/29"), new Date("2020/09/30"), new Date("2020/10/01"), new Date("2020/10/02"), new Date("2020/10/03"), new Date("2020/10/04"), new Date("2020/10/05"), new Date("2020/10/06"), new Date("2020/10/07"), new Date("2020/10/08"), new Date("2020/10/09"), ] } ] };