Toggle navigation
堆栈图
By
變***話
2017-04-26 02:23:56
脚本
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": "transparent", "textStyle": { "color": "#525252" }, "color": ["#6cc505", "#2fb3ff", "#ff9703", "#ff623e", "#ff2f74", "#fdc827", "#705eb4", "#30d9d9"], "tooltip": { "trigger": "axis", "axisPointer": { "type": "shadow" }, formatter: function(param){ // console.log(param); return '测试测试' } }, "legend": { "data": ["爱奇艺", "优酷", "腾讯", "搜狐", "乐视", "芒果", "PPTV", "土豆"], "show": true, "orient": "vertical", "bottom": 10, "right": 15, "itemWidth": 14, "selectedMode": false }, "grid": { "left": 100, "right": 50, "top": 10, "height": 320, "containLabel": false }, "xAxis": { "type": "value", "axisLabel": { "show": false }, "axisLine": { "show": false }, "axisTick": { "show": false }, "splitLine": { "show": false } }, "yAxis": { "type": "category", "data": ["人民的名义", "剃刀边缘", "三生三世十里\n桃花", "因为遇见你", "微微一笑很倾\n城", "鸡毛飞上天", "琅琊榜", "欢乐颂", "锦绣未央", "大唐荣耀"], "axisTick": { "inside": false, "show": false }, "axisLabel": { "show": true, "interval": 0 }, "inverse": true }, "series": [{ "name": "爱奇艺", "type": "bar", "stack": "前台播放量", "label": { "normal": { "show": false } }, "barWidth": 15, "data": [31476415, 6841569, 6372813, 5583119, "-", 2908400, 1657213, 1352003, 1233351, "-"] }, { "name": "优酷", "type": "bar", "stack": "前台播放量", "label": { "normal": { "show": false } }, "barWidth": 15, "data": [34910612, "-", 5835834, "-", 9061273, "-", 918930, 1234345, 1718025, "-"] }, { "name": "腾讯", "type": "bar", "stack": "前台播放量", "label": { "normal": { "show": false } }, "barWidth": 15, "data": [59371212, 31552653, 7697182, 6149731, "-", "-", 2170058, 2167968, 1054977, 3799639] }, { "name": "搜狐", "type": "bar", "stack": "前台播放量", "label": { "normal": { "show": false } }, "barWidth": 15, "data": [11304567, 4820821, 1425845, "-", "-", 1962332, 167684, 131823, "-", "-"] }, { "name": "乐视", "type": "bar", "stack": "前台播放量", "label": { "normal": { "show": false } }, "barWidth": 15, "data": ["-", 3830349, 1626410, 1456297, "-", 1582782, 354190, 249865, "-", "-"] }, { "name": "芒果", "type": "bar", "stack": "前台播放量", "label": { "normal": { "show": false } }, "barWidth": 15, "data": [4188364, "-", "-", 764275, "-", "-", "-", "-", "-", "-"] }, { "name": "PPTV", "type": "bar", "stack": "前台播放量", "label": { "normal": { "show": false } }, "barWidth": 15, "data": [46796395, "-", 2009009, "-", "-", "-", "-", 144042, "-", "-"] }, { "name": "土豆", "type": "bar", "stack": "前台播放量", "label": { "normal": { "show": false } }, "barWidth": 15, "data": ["-", "-", 103843, "-", "-", "-", 19655, "-", "-", "-"] }, { "name": "总量", "type": "bar", "stack": "前台播放量", "label": { "normal": { "show": true, "position": "right", formatter: function(value){ console.log(value); return value.dataIndex } } }, "data": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0] }] }