Toggle navigation
区域销量
By
J***儿
2019-04-22 02:48:06
脚本
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: '#fff', tooltip: { trigger: 'axis', axisPointer: { type: 'shadow' } }, /*legend: { data: ['区域销量'], align: 'left', top: 10, right: 10, textStyle: { color: "#333" }, itemWidth: 10, itemHeight: 10, itemGap: 35 },*/ grid: { left: '3%', right: '4%', bottom: '3%', containLabel: true }, xAxis: [{ type: 'category', data: ['大港区', '蓟州区', '宁河区', '武清区', '汉沽区', '塘沽区', '宝坻区', '东疆区', '和平区', '红桥区', '静海区', '华苑园区', '开发区', '河东区', '津南区', '河西区', '东丽区', '河北区', '西青区', '南开区', '北辰区' ], axisLine: { show: true, lineStyle: { color: "#999", width: 1, type: "solid" } }, axisTick: { show: false, }, axisLabel: { show: true, rotate:45, textStyle: { color: "#333", } }, }], yAxis: [{ type: 'value', axisLabel: { formatter: '{value} ' }, axisTick: { show: false, }, axisLine: { show: false, lineStyle: { color: "#333", width: 1, type: "solid" }, }, splitLine: { lineStyle: { color: "#063374", } } }], dataZoom: [{ type: 'inside', start: 0, end: 10 }, { 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 } }], series: [{ name: '区域销量', type: 'bar', label: { normal: { show: true, position: 'top', formatter: '{c}', textStyle: { color: '#333' } } }, data: [20, 50, 80, 58, 83, 68, 57,20, 50, 80, 58, 83, 68, 57,20, 50, 80, 58, 83, 68,89], barWidth: '40%', //柱子宽度 barGap: 0, //柱子之间间距 itemStyle: { normal: { color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{ offset: 0, color: '#7aee8e' }, { offset: 1, color: '#43ce5b' }]), opacity: 1, } } }, ] };