Toggle navigation
多个series树图都设置roam,无法同时移动或缩小
By
好仙人球掌
2019-03-08 10:01:55
脚本
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
图表已生成
整理代码
刷新
代码
let guquan = { "kg": { "KeyNo": "69e127d934fe6ba84b6cc093ceb3243f", "Names": [{ "Org": 0, "Name": "银承互联网金融信息服务(南京)有限公司", "Oper": { "Org": 2, "Name": "曹石花", "KeyNo": "p87aa1ddd977c6af5f360b395bb89691", "HasImage": false, "OperType": 1, "CompanyCount": 2, "ProvinceInfo": "[{\"P\":\"JS\",\"C\":2,\"N\":\"江苏银承网络科技股份有限公司\"}]" }, "Type": 0, "KeyNo": "f4042c81ca09828dae54028ce91cb5f2", "Level": "1", "Percent": "", "EconKind": "有限责任公司(法人独资)", "ImageUrl": "https://qccdata.qichacha.com/AutoImage/f4042c81ca09828dae54028ce91cb5f2.jpg?x-oss-process=image/resize,w_120", "StartDate": 1411574400, "RegistCapi": "1000万元人民币", "ShortStatus": "在业", "PercentTotal": "100%" }], "NameCount": 1, "CompanyName": "江苏银承网络科技股份有限公司" }, "kzr": { "KeyNo": "69e127d934fe6ba84b6cc093ceb3243f", "UpdateTime": "2019-02-19 18:13:24", "CompanyName": "江苏银承网络科技股份有限公司", "ControllerData": { "Name": "曹石金", "KeyNo": "pce38c917369c1b44470e4738a41c8a9", "Percent": "", "PercentTotal": "80%" } }, "syr": { "KeyNo": "69e127d934fe6ba84b6cc093ceb3243f", "Names": [{ "Org": 2, "Name": "曹石金", "KeyNo": "pce38c917369c1b44470e4738a41c8a9", "Percent": "", "ImageUrl": "", "PercentTotal": "80%", "RelatedCount": 4 }], "CompanyName": "江苏银承网络科技股份有限公司" }, "touzi": { "Name": "江苏银承网络科技股份有限公司", "DetailList": [{ "Org": 0, "Name": "银承互联网金融信息服务(南京)有限公司", "Tags": [], "KeyNo": "f4042c81ca09828dae54028ce91cb5f2", "Level": 1, "Percent": "100.00%", "DetailList": [], "ShouldCapi": "1000", "CompanyCode": "", "DetailCount": 0, "ShortStatus": "在业", "PercentTotal": "100.00%", "StockRightNum": "" }] }, "gudong": { "Name": "江苏银承网络科技股份有限公司", "DetailList": [{ "Org": 2, "Name": "曹石金", "Tags": [], "KeyNo": "pce38c917369c1b44470e4738a41c8a9", "Level": 1, "Percent": "80.00%", "DetailList": [], "ShouldCapi": "800", "CompanyCode": "", "DetailCount": 0, "ShortStatus": "", "PercentTotal": "80.00%", "StockRightNum": "" }, { "Org": 2, "Name": "金艳", "Tags": [], "KeyNo": "pce0bd9100865577756db781dd5524b1", "Level": 1, "Percent": "16.00%", "DetailList": [], "ShouldCapi": "160", "CompanyCode": "", "DetailCount": 0, "ShortStatus": "", "PercentTotal": "16.00%", "StockRightNum": "" }, { "Org": 2, "Name": "强红军", "Tags": [], "KeyNo": "paa0da1bd87acd64cb9a1860212b3e40", "Level": 1, "Percent": "4.00%", "DetailList": [], "ShouldCapi": "40", "CompanyCode": "", "DetailCount": 0, "ShortStatus": "", "PercentTotal": "4.00%", "StockRightNum": "" }] }, "status": 200 } function getData() { this.rootData = this.guquan this.shareHolderData = this.guquan.gudong this.investmentData = this.guquan.touzi this.transTree(this.shareHolderData, 1); this.initTree(this.shareHolderData); this.transTree(this.investmentData, 2); this.initTree(this.investmentData); this.drawEquityStructure() } function transTree(data,type){ if(!data) return; data.children = data.DetailList data.DetailList = undefined data.treeId = this.treeId if(type === 2){ data.isTouzi = true } let fontSize = 12; if(data.ShortStatus=='注销'||data.ShortStatus=='吊销'){ data.Name = '【'+data.ShortStatus+'】'+data.Name; } if(data.Name.length>20){ data.name = data.Name.substr(0,19)+'…'; data.ltext = true; }else{ data.name = data.Name; } if(data.Org==2 &&data.Name.length>8){ data.name = data.Name.substr(0,7)+'…'; } data.name = data.name.replace(/(.{10})(?=.)/g, '$1\n'); data.symbol = 'rectangle'; data.symbolSize= [146, 62]; if(data.tag){ data.symbolSize= [146, 82]; } data.itemStyle = { color: "#fff", borderWidth: "1", borderColor: "#ccc", } data.label = { show: true, position: "inside", fontStyle: "normal", fontFamily: "MicroSoft YaHei", color:'#333', fontSize: fontSize } data.emphasis = { itemStyle: { color: "rgb(255,255,255,0)", borderWidth: "1", borderColor: "rgba(255,255,255,0)", }, label:{ show:true, color: "rgb(255,255,255,0)", borderWidth: "1", borderColor: "rgba(255,255,255,0)", }, lineStyle:{ color: "rgb(255,255,255,0)", borderWidth: "1", borderColor: "rgba(255,255,255,0)", } } if(data.Org==2){ data.symbol = 'rectangle'; data.symbolSize= [146, 55]; data.itemStyle = { color: "#F3F9FE", borderWidth: "1", borderColor: "#128bed", }; data.label = { show: true, position: "inside", color:'#333', fontFamily: "MicroSoft YaHei", fontSize: 14, fontStyle: "normal", } data.emphasis = { itemStyle: { color: "rgb(255,255,255,0)", borderWidth: "1", borderColor: "rgba(255,255,255,0)", }, label:{ show:true, color: "rgb(255,255,255,0)", borderWidth: "1", borderColor: "rgba(255,255,255,0)", } } } let children = data.children; if(children){ for(let i=0;i