Toggle navigation
多数据堆叠柱状图
By
残月下的面具
2018-03-19 08:49:23
脚本
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 = { tooltip: { trigger: 'axis', backgroundColor:'rgba(255,255,255,0.8)', extraCssText: 'box-shadow: 0 0 8px rgba(0, 0, 0, 0.3);', textStyle:{ color:'#6a717b', }, }, toolbox:{ right:20, feature:{ magicType: { type:['line'] }, restore: {}, saveAsImage: {}, // brush: {}, } }, grid: { top: '90', left: '3%', right: '4%', bottom: '50', containLabel: true }, color: ['#229aff','#fdb94e','#30d6a9','#13bfe8','#fedb42','#86d560','#72d4ec','#ff9d35','#31ca5f','#ff999a','#3dccc7','#ffad8c','#4bb6de','#fe8042','#5fa5f5','#07bcbe','#f36365','#30addc','#f5adae','#7fd4d2'], legend: { top: '30', data:['天猫','淘宝','京东','苏宁','国美','贝贝网','当当网','聚美优品','蜜芽','顺丰优选','蘑菇街','唯品会','网易考拉','华为'] }, dataZoom: [{ type: 'inside', start: 0, end: 100 }, { start: 0, end: 10, handleIcon: 'M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4v1.3h1.3v-1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7V23h6.6V24.4z M13.3,19.6H6.7v-1.4h6.6V19.6z', handleSize: '80%', handleStyle: { color: '#fff', shadowBlur: 3, shadowColor: 'rgba(0, 0, 0, 0.6)', shadowOffsetX: 2, shadowOffsetY: 2 } }], xAxis: [ { type: 'category', data: ['2017.01','2017.02','2017.03','2017.04','2017.05','2017.06','2017.07','2017.08','2017.09','2017.10','2017.11','2017.12','2018.01'], splitLine: { show: false, lineStyle: { color: ['#D4DFF5'] } }, axisTick: { show: true }, axisLine: { lineStyle: { color: '#666' } }, }, ], yAxis: [{ name: '零售量(万件)', type: 'value', axisLabel: { textStyle: { color: '#666', fontStyle: 'normal', } }, axisLine:{ show: false }, axisTick:{ show: false }, splitLine: { show: true, } }], series : [ { name:'天猫', type:'bar', data:[310,1018, 964, 1026, 169, 160, 157,220, 232, 201, 154, 190, 330, ] }, { name:'淘宝', type:'bar', stack: '渠道1', data:[320, 332, 301, 334, 390, 330, 320,120, 232, 201, 154, 190, 330, ] }, { name:'京东', type:'bar', stack: '渠道1', data:[310,1018, 964, 106, 169, 160, 157,220, 232, 201, 154, 190, 330, ] }, { name:'苏宁', type:'bar', stack: '渠道2', data:[ 734, 1090, 1130,150, 232, 201, 154, 190, 232, 201, 154, 190, 330, ] }, { name:'国美', type:'bar', stack: '渠道2', data:[1018, 964, 106, 167,82, 160, 150,150, 232, 201, 154, 190,], }, { name:'贝贝网', type:'bar', barWidth : 8, stack: '渠道2', data:[1130, 1120,732, 71,60, 32, 61, 74, 232, 201, 154, 190, 330, ] }, { name:'当当网', type:'bar', stack: '渠道2', data:[120, 132, 101, 134, 290, 230, 220,120, 132, 101, 134, 290, 230,] }, { name:'聚美优品', type:'bar', stack: '渠道2', data:[60, 72, 71, 74, 190, 130, 110,150, 232, 201, 154, 190, 330,] }, { name:'蜜芽', type:'bar', stack: '渠道2', data:[62, 82, 91, 84, 109, 110, 120,72, 71, 74, 190, 130, 110] }, { name:'顺丰优选', type:'bar', stack: '渠道2', data:[150, 232, 201, 154, 190, 30, 410,620,71, 74, 190, 130, 110] }, { name:'蘑菇街', type:'bar', stack: '渠道2', data:[862, 1018, 964, 106, 71, 74, 190, 130, 110,154, 190, 330, 410], }, { name:'唯品会', type:'bar', //barWidth : 5, stack: '渠道2', data:[620, 732, 71, 74, 109, 130, 110,60, 72, 71, 74, 190, 130, ] }, { name:'网易考拉', type:'bar', stack: '渠道2', data:[120, 132, 101, 134, 290, 230, 220, 732, 71, 74, 190, 130, 110] }, { name:'华为', type:'bar', stack: '渠道2', data:[60, 72, 71, 74, 190, 130, 110,60, 72, 71, 74, 190, 130, ] }, ] };