Toggle navigation
笛卡尔坐标系上的 Graph
By
182*****191
2020-05-27 06:56:34
脚本
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: '笛卡尔坐标系上的 Graph' }, xAxis:[ { type : 'category', boundaryGap : false, data : ['2016年', '2017年', '2018年', '2020年', '1996年', '1995年', '1994年'] } ], yAxis: { // type : 'category', // boundaryGap : false, // data: ['a','b','c','d'] }, series: [ { type: 'graph', layout: 'none', coordinateSystem: 'cartesian2d', symbolKeepAspect:false, symbol: "path://M19.300,3.300 L253.300,3.300 C262.136,3.300 269.300,10.463 269.300,19.300 L269.300,21.300 C269.300,30.137 262.136,37.300 253.300,37.300 L19.300,37.300 C10.463,37.300 3.300,30.137 3.300,21.300 L3.300,19.300 C3.300,10.463 10.463,3.300 19.300,3.300 Z", symbolSize: [150, 70], label: { normal: { show: true } }, edgeSymbol: ['circle', 'arrow'], edgeSymbolSize: [4, 10], data: [{ name: 'a', value: [1, 300], }, { name: 'b', value: [1, 200], },{ name: 'c', value: [1, 100], },{ name: 'd', value: [1, 0], },{ name: 'e', value: [2, 200], } ], links: [ {source: 'a', target: 'b'}, {source: 'a', target: 'e'}, {source: 'b', target: 'c'}, {source: 'c', target: 'd'}, {source: 'e', target: 'd'}, // {source: 3, target: 4}, // {source: 4, target: 5}, // {source: 5, target: 6} ], lineStyle: { normal: { color: '#2f4554' } } } ] };