Toggle navigation
金隅节点图
By
红***衩
2019-03-13 05:23:07
脚本
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 = { backgroundColor:"#fff", dataset: { source: [ ["value", "规划方案设计", "部品研究", "全套施工图外审", "目标成本确定", "总包单位确定", "示范工程验收", "首次开盘", "开工"], ["运营计划完成时间", 20180705,20180922,20181122,20190105,20190326,20190630,20200131,20210115], ["实际完成时间", 20180703, 20181012,20190215], // ["回款30%", 199605, 167205], // ["现金流回正", 201810, 201811] ] }, series: { "type": "custom", "coordinateSystem": "none", "seriesLayoutBy": "row", "label": { "show":true, "formatter": function(arg) { return arg.value[0] } }, "renderItem": function a(params, api) { var left = 100,right=20,bp=50; var style = api.style(), v1=api.value(1), v2=api.value(2), cw = api.getWidth(), ch = api.getHeight(), w = (cw-left-right)/12, text = style.text, index = params.dataIndex, date = new Date(), now = date.getFullYear()*100+date.getMonth()+1, before = now-api.value(3)>0; console.log(v1,v2) var result={ type:'group', position:[left+w*index+w/4,ch*2/5], children:[ { type:'text', style:{ text:text, fill:params.context.now==0?'#999':'#333', textAlign:'center', textVerticalAlign:'middle' }, position:[0,-30] },{ type:'text', style:{ text:v2?(v2.toString().substring(0,4)+'-'+v2.toString().substring(4,6)+'-'+v2.toString().substring(6,8)):(v1.toString().substring(0,4)+'-'+v1.toString().substring(4,6)+'-'+v1.toString().substring(6,8)), fill:params.context.now==0?'#999':'#999', textAlign:'center', textVerticalAlign:'middle' }, position:[0,30] },{ type:'line', style:{ stroke:v2?'#38d372':'#e3eaf6', lineWidth:2 }, shape:{ x1:-w/2,x2:w/2,y1:0,y2:0 } },{ type:'ring', style:{ fill:'#fff', }, shape:{ r:8,r0:0 } },{ type:'ring', style:{ fill:v2?'#38d372':'#e3eaf6', }, shape:{ r:8,r0:params.context.now==0?6:0 } }] } return result; } } };