Toggle navigation
渐变折线统计图
By
L***3
2019-07-13 02:26:36
脚本
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
图表已生成
整理代码
刷新
代码
var option = { title: { text: '运营商、代理商、企业会员增长趋势图(以30天为1个周期)', left: 0, top: 4, textStyle: { fontFamily: 'MicrosoftYaHei', fontSize: 17, color: '#2b3b60', fontWeight: 500, }, }, backgroundColor: '#fff', tooltip: { trigger: 'axis', axisPointer: { // 坐标轴指示器,坐标轴触发有效 type: 'line' // 默认为直线,可选为:'line' | 'shadow' } }, grid: { left: '2%', right: '4%', bottom: '14%', top: '16%', containLabel: true }, legend: { data: ['企业会员总数', '代理商总数', '运营商总数'], right: 10, top: 12, textStyle: { color: "#2b3b60" }, itemWidth: 12, itemHeight: 10, // itemGap: 35 }, xAxis: { type: 'category', data: ['2012', '2013', '2014', '2015', '2016', '2017', '2018', '2019'], axisLine: { lineStyle: { color: '#d2d9e4' } }, axisLabel: { textStyle: { fontFamily: 'Microsoft YaHei', color: '#6175a2' } }, }, yAxis: { type: 'value', max: '1200', axisLine: { show: false, lineStyle: { color: '#6175a2' } }, splitLine: { show: true, lineStyle: { type: 'dashed', color: '#d2d9e4' } }, axisLabel: {} }, "dataZoom": [{ "show": true, "height": 15, "xAxisIndex": [ 0 ], bottom: '8%', "start": 10, "end": 90, handleIcon: 'path://M306.1,413c0,2.2-1.8,4-4,4h-59.8c-2.2,0-4-1.8-4-4V200.8c0-2.2,1.8-4,4-4h59.8c2.2,0,4,1.8,4,4V413z', handleSize: '110%', handleStyle: { color: "#d3dee5", }, textStyle: { color: "#6175a2" }, borderColor: "rgba(144,151,156, 0.3)" }, { "type": "inside", "show": true, "height": 15, "start": 1, "end": 35 }], series: [{ name: '企业会员总数', type: 'line', barWidth: '15%', showAllSymbol: true, symbol: 'emptyCircle', symbolSize: 10, //圆圈圈的大小 itemStyle: { normal: { width: 5, color: '#498cfc', barBorderRadius: 11, }, }, // symbol:'none',//去掉点的 smooth: true, //曲线变平滑的 lineStyle: { normal: { width: 3, //折线的borderWidth 宽 shadowColor: 'rgba(73,140,252, 0.5)', shadowBlur: 10, shadowOffsetY: 7 }, }, data: [600, 1000, 600, 1000, 600, 1000, 600, 1000, 600] }, { name: '代理商总数', type: 'line', barWidth: '15%', showAllSymbol: true, symbol: 'emptyCircle', symbolSize: 10, //圆圈圈的大小 itemStyle: { normal: { width: 5, color: '#f9b555', barBorderRadius: 11, // borderWidth: 1,//折点圆圈大小 } }, smooth: true, //曲线变平滑的 lineStyle: { normal: { width: 3, shadowColor: 'rgba(249,181,85, 0.5)', shadowBlur: 10, shadowOffsetY: 7 }, }, data: [400, 600, 400, 600, 400, 600, 400, 600, 400] }, { name: '运营商总数', type: 'line', barWidth: '15%', showAllSymbol: true, symbol: 'emptyCircle', symbolSize: 10, //圆圈圈的大小 itemStyle: { normal: { show: true, color: '#55cf96', barBorderRadius: 11, } }, smooth: true, //曲线变平滑的 lineStyle: { normal: { width: 3, shadowColor: 'rgba(85,207,150, 0.5)', shadowBlur: 10, shadowOffsetY: 7 }, }, data: [1000, 1200, 1000, 1200, 1000, 1200, 1000, 1200, 1000] } ] };