Toggle navigation
渐变投影柱状图
By
H***n
2020-11-24 05:55:16
脚本
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 data = [10.0, 9.6, 8.0, 6.9, 3.1, 5.1, 8.1, 7.2, 4.9, 3.9, 7.2, 9.2, 12.7, 7.0, 4.6, 6.1, 8.4, 8.2, 6.2, 4.7, 9.2, 7.2]; var dataShadow = []; option = { tooltip: { trigger: 'axis', formatter: "{b}: {c}", axisPointer: { // 坐标轴指示器,坐标轴触发有效 type: 'shadow' // 默认为直线,可选为:'line' | 'shadow' } }, grid: { left: '4%', right: '0', bottom: '20%', top: '15%', }, xAxis: [{ type: 'category', data: ['特中设备监管', '食品小作坊监管', '食品安全监管', ' 药械保化监管', '进口药品报验管理', '智慧315', '工业品生产许可证管理', '产品风险监测与处置', '食品安全法检', '价格信用单位监管', '食品经营单位监管', '网络订餐食品安全监管', '自动售货设备管理', '食用农产品批发监管', '食用农产品风险防控', '案件稽查', '互联网广告监测', '药械保化(三期)', '办公室综合管理', '协同办公OA', '信用档案', '网络交易监管'], axisLine: { show: false }, axisTick: { show: false }, axisLabel: { textStyle: { color: '#666', }, rotate: 30 } }], yAxis: { name: '百分比', splitLine: { show: true, lineStyle: { color: ['#eee'], width: 1, type: 'solid' } }, axisLine: { show: false }, axisTick: { show: false }, axisLabel: { textStyle: { color: '#666' }, } }, series: [ { type: 'bar', barCategoryGap: '40%', label: { normal: { show: true, position: 'top', textStyle: { color: '#666' // 改变标示文字的颜色 }, }, }, itemStyle: { normal: { color: new echarts.graphic.LinearGradient( 0, 0, 0, 1, [{ offset: 0, color: '#3b7ed9' }, { offset: 1, color: '#785ef2' }] ), shadowBlur: 10, shadowColor: 'rgba(120, 94, 242, 0.5)', shadowOffsetY: 5, }, emphasis: { color: new echarts.graphic.LinearGradient( 0, 0, 0, 1, [{ offset: 0, color: '#3b7ed9' }, { offset: 1, color: '#785ef2' }] ) } }, data: data } ] };