Toggle navigation
温度计柱图
By
沫***儿
2020-04-18 12:42:42
脚本
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: '#000', color: ["#59e7eb", "#38e27f", "#2f92ed", "#d0cc6f", "#e47f2e"], tooltip: {}, grid: { top: "12%", left: "7%", right: "7%", bottom: "8%", containLabel: true }, xAxis: [{ type: "category", boundaryGap: true, axisLine: { //坐标轴轴线相关设置。数学上的x轴 show: true, lineStyle: { color: "#676C7B" } }, axisLabel: { //坐标轴刻度标签的相关设置 textStyle: { color: "#d1e6eb", margin: 15 } }, axisTick: { show: false }, data: [] }, { type: 'category', axisLine: { show: false }, axisTick: { show: false }, axisLabel: { show: false }, splitArea: { show: false }, splitLine: { show: false }, data: [] } ], yAxis: [{ type: "value", nameTextStyle: { color: "#fff" }, name: "数量/个", max: 200, min: 0, interval: 50, splitNumber: 7, splitLine: { show: true, lineStyle: { type: "dashed", color: "#676C7B" } }, axisLine: { show: true, lineStyle: { color: "#676C7B" } }, axisLabel: { margin: 20, textStyle: { color: "#d1e6eb" } }, axisTick: { show: false } }], series: [ { name: "医疗", // bar图的外边框 type: "bar", barWidth: "10%", xAxisIndex: 0, itemStyle: { normal: { color: "rgba(0,0,0,0)", borderColor: "#4292A7", barBorderRadius: 2, borderWidth: 1, shadowColor: "#5CEFF1", shadowBlur: 5, shadowOffsetX: 0, shadowOffsetY: 0 } }, data: [110, 140, 60, 100] }, { name: "医疗", //这个是Bar图 type: "bar", barWidth: "4%", barGap: "220%", xAxisIndex: 1, label: { show: true, formatter: "{a|}", color: "#fff", position: "top", distance: -10, backgroundColor: "#60FFFF", padding: 4, borderRadius: 15, rich: { a: { width: 6, height: 6, borderRadius: 6, lineHeight: 6, backgroundColor: "#fff" } } }, itemStyle: { normal: { color: { type: "linear", x: 0, y: 0, x2: 1, y2: 1, colorStops: [{ offset: 0, color: "#54FCFC" // 0% 处的颜色 }, { offset: 1, color: "#1F4869" // 100% 处的颜色 } ] } } }, data: [100, 130, 50, 90] }, { name: "工厂", // bar图的外边框 type: "bar", barWidth: "10%", xAxisIndex: 0, label: { show: false }, itemStyle: { normal: { color: "rgba(0,0,0,0)", borderColor: "#3AED82", barBorderRadius: 2, borderWidth: 1, shadowColor: "#3AED82", shadowBlur: 5, shadowOffsetX: 0, shadowOffsetY: 0 } }, data: [110, 140, 60, 100] }, { name: "工厂", //这个是Bar图 type: "bar", barWidth: "4%", xAxisIndex: 1, label: { show: true, formatter: "{a|}", color: "#fff", position: "top", distance: -5, backgroundColor: "#3AED82", padding: 4, borderRadius: 15, rich: { a: { width: 6, height: 6, borderRadius: 6, lineHeight: 6, backgroundColor: "#fff" } } }, itemStyle: { normal: { color: { type: "linear", x: 0, y: 0, x2: 1, y2: 1, colorStops: [{ offset: 0, color: "#3AED82" // 0% 处的颜色 }, { offset: 1, color: "#17454E" // 100% 处的颜色 } ] } } }, data: [100, 130, 50, 90] }, { name: "电网", // bar图的外边框 type: "bar", barWidth: "10%", xAxisIndex: 0, label: { show: false }, itemStyle: { normal: { color: "rgba(0,0,0,0)", borderColor: "#3199F7", barBorderRadius: 2, borderWidth: 1, shadowColor: "#5CEFF1", shadowBlur: 5, shadowOffsetX: 0, shadowOffsetY: 0 } }, data: [110, 140, 100, 100] }, { name: "电网", //这个是Bar图 type: "bar", barWidth: "4%", xAxisIndex: 1, label: { show: true, formatter: "{a|}", color: "#fff", position: "top", distance: -5, backgroundColor: "#3199F7", padding: 4, borderRadius: 15, rich: { a: { width: 6, height: 6, borderRadius: 6, lineHeight: 6, backgroundColor: "#fff" } } }, itemStyle: { normal: { color: { type: "linear", x: 0, y: 0, x2: 1, y2: 1, colorStops: [{ offset: 0, color: "#3199F7" // 0% 处的颜色 }, { offset: 1, color: "#153369" // 100% 处的颜色 } ] } } }, data: [100, 130, 90, 90] }, { name: "社区", // bar图的外边框 type: "bar", barWidth: "10%", xAxisIndex: 0, label: { show: false }, itemStyle: { normal: { color: "rgba(0,0,0,0)", borderColor: "#F4862B", barBorderRadius: 2, borderWidth: 1, shadowColor: "#F4862B", shadowBlur: 5, shadowOffsetX: 0, shadowOffsetY: 0 } }, data: [110, 140, 160, 100] }, { name: "社区", //这个是Bar图 type: "bar", barWidth: "4%", xAxisIndex: 1, label: { show: true, formatter: "{a|}", color: "#fff", position: "top", distance: -5, backgroundColor: "#F4862B", padding: 4, borderRadius: 15, rich: { a: { width: 6, height: 6, borderRadius: 6, lineHeight: 6, backgroundColor: "#fff" } } }, itemStyle: { normal: { color: { type: "linear", x: 0, y: 0, x2: 1, y2: 1, colorStops: [{ offset: 0, color: "#F4862B" // 0% 处的颜色 }, { offset: 1, color: "#422F3C" // 100% 处的颜色 } ] } } }, data: [100, 130, 150, 90] } ] };