Toggle navigation
横向柱状图
By
y***8
2021-01-15 06:20:50
脚本
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 salvProName = ["安徽省", "河南河南省河南省河南省河南省河南省河南省河南省省", "浙江省", "湖北省", "贵州省", "江西省", "江苏省", "四川省", "云南省", "湖南省"]; var salvProValue = [250, 181, 154, 144, 135, 117, 74, 72, 67, 55]; option = { backgroundColor: "#fff", grid: { left: '3%', right: '5%', bottom: '10%', top: '10%', containLabel: true }, tooltip: { trigger: 'axis', axisPointer: { type: 'none' }, formatter: function(params) { return params[0].name + ' : ' + params[0].value } }, xAxis: { show: true, splitLine: { show: true, textStyle: { color: '#333' }, lineStyle:{ color: '#8c8c8c', type:'dashed', } }, axisLine: { show: true, textStyle: { color: '#333' }, lineStyle:{ color: '#8c8c8c', type:'dashed', } }, axisTick: { show: false }, axisLabel: { show: true }, type: 'value' }, yAxis: [{ type: 'category', inverse: true, boundaryGap: true, axisLabel: { show: true, lineStyle: { color: '#f2f2f2' } }, splitLine: { show: false }, axisTick: { show: false }, axisLine: { show: false }, data: salvProName }], series: [{ // name: '值', type: 'bar', zlevel: 1, itemStyle: { normal: { barBorderRadius: [0, 10, 10, 0], color: new echarts.graphic.LinearGradient(0, 0, 1, 0, [{ offset: 0, color: 'rgb(57,89,255,1)' }, { offset: 1, color: 'rgb(46,200,207,1)' }]), }, }, barWidth: 20, data: salvProValue } ] };