Toggle navigation
t1
By
百度用户#0971362260
2019-11-11 03:54:22
脚本
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", "首笔土地类资金流出10%", "首次开盘", "回款30%", "现金流回正", "销售95%", "梭备", "结利", "交房"], ["首开奖", null, 3, 0, 0, 0, null, null, null], ["周转奖", null, null, 200000, 200000, 500000, null, null, null], ["利润奖", null, null, 100000, 100000, null, null, null, null], ["目前节点", 201810, 201811, 201812, 201901, 201810, 201904, 201905, 201906], ["与预计偏差", null, -1, 1, 0, null, 1, null, null], ["启动会节点", 201810, 201812, 201811, 201901, 201903, 201903, 201905, 201906] ] }, 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,diff=api.value(5)>0; var style = api.style(), cw = api.getWidth(), ch = api.getHeight(), w = (cw-left-right)/8, text = style.text, v = api.value(1), index = params.dataIndex, date = new Date(), now = date.getFullYear()*100+date.getMonth()+1, before = now-api.value(4)>0; if(params.context.now==1){ params.context.now=2 }else if(before){ params.context.now = 0; }else if(params.context.now!=2){ params.context.now = 1; } console.log(params.context.now); var result={ type:'group', position:[left+w*index+w/2,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:api.value(4)?(api.value(4).toString().substring(0,4)+'.'+api.value(4).toString().substring(4,6)):'', fill:params.context.now==0?'#999':'#2872eb', textAlign:'center', textVerticalAlign:'middle' }, position:[0,30] },{ type:'line', style:{ stroke:params.context.now==0?'#e3eaf6':'#2872eb', lineWidth:2 }, styleEmphasis:{ stroke:params.context.now==0?'#e3eaf6':'#2872eb' }, 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:params.context.now==0?'#e3eaf6':'#2872eb', }, styleEmphasis:{ fill:params.context.now==0?'#e3eaf6':'#2872eb' }, shape:{ r:8,r0:params.context.now==0?6:0 } }] } if(api.value(1)||api.value(2)||api.value(3)){ var t1=''; if(api.value(1)){ t1='奖\n'; for(var i=0;i