Toggle navigation
供应商top10
By
十***路
2018-10-09 07:07:59
脚本
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 = { color: ['#F9A897'], barWidth: '18px', backgroundColor: '#fff', title: { text: '供应商top10', textStyle: { color: '#222', fontWeight: 'normal', fontSize: 14 } }, tooltip: { trigger: 'axis', axisPointer: { // 坐标轴指示器,坐标轴触发有效 type: 'shadow' // 默认为直线,可选为:'line' | 'shadow' }, backgroundColor: '#fff', extraCssText: 'box-shadow: 0px 0px 8px 0px rgba(0,0,0,0.2);', textStyle: { color: "#333", } }, grid: { left: '3%', right: '4%', bottom: '3%', top: '10%', containLabel: true }, xAxis: { type: 'value', splitLine: { show: false }, axisLabel: { rotate: '-20' } }, yAxis: { type: 'category', inverse: true, offset: 220, axisLabel: { formatter: function(name, index) { var val if (index < 3) { a = '{a|' + (index + 1) + '}' + echarts.format.truncateText(name, 200, '10px Microsoft Yahei', '…'); } else { a = '{b|' + (index + 1) + '}' + echarts.format.truncateText(name, 200, '10px Microsoft Yahei', '…'); } return a }, align: 'left', color: '#4D5658', padding: [5, 5, 5, 10], rich: { a: { color: '#fff', backgroundColor: '#FF8E42', width: 30, height: 17, fontSize:10, align: 'center', borderRadius: 10, lineHeight: 17, }, b: { width: 30, height: 17, margin: 10, fontSize:12, align: 'center', borderRadius: 10, lineHeight: 17, } }, }, data: [ '那时候车马慢,一生只够爱一人', '从前车马很慢,书信很远,一生只够爱一个人', '算你这的歌我也不会听', '算你这么说的歌我也不会听', '就只看了你一眼,就已确定了永远', 'Access-Control-Allow-Origin', '123就只看了你一眼,就已确定了永远', '就只看了你一眼,就已确定了永远333', '听忠言 摒逆语 树威严 宝剑斫书案' ] }, series: [{ type: 'bar', data: [500, 450, 360, 320, 290, 200, 160,100,80] }] }; myChart.setOption(option, true);