Toggle navigation
echarts-demo(标注气泡图)
By
三***H
2018-08-16 01:48:51
脚本
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:['#fff'], title:{ text:'某地区蒸发量和降水量', textStyle:{ color:'#fff', }, }, legend:{ name:[], textStyle:{ color:'#fff', fontSize:18, }, }, backgroundColor:'#08254F', // tooltip(提示框组件) tooltip: { //trigger(触发类型),可选'item','axis','none' trigger: 'axis', axisPointer: { //指示器类型,可选'line','shadow','cross' type: 'shadow' } }, // toolbox,echarts自带工具 toolbox: { show : true, feature : { dataView : {show: true, readOnly: false}, magicType : {show: true, type: ['line', 'bar']}, restore : {show: true}, saveAsImage : {show: true} } }, xAxis: { type: 'category', data: ['1月', '2月', '3月', '4月', '5月','6月','7月','8月','9月','10月','11月','12月'], axisLabel: { show: true , color: '#fff', fontSize: 20, }, splitLine: { show: false }, axisLine: { // show:false, lineStyle: { color: '#FFFFFF' } }, axisTick: { show: false }, }, yAxis: [ { name:'降水量/蒸发量', type: 'value', splitLine: { show: false }, //axisTick 坐标轴刻度相关设置 axisTick: { show: true }, //axixLine 坐标轴轴线相关设置 axisLine: { lineStyle: { color: '#FFFFFF', } }, //axisLabel 坐标轴刻度标签的相关设置 axisLabel: { show: true, color: '#fff', fontSize: 20 } }, ], series: [ { name:'降水量', type: 'bar', data: [2.6, 5.9, 9.0, 26.4, 28.7, 70.7, 175.6, 182.2, 48.7, 18.8, 6.0, 2.3], barWidth: '30%', itemStyle: { color:'#00C1FF', }, //markPoint 图表标注 markPoint : { //标记图形的大小 symbolSize:60, data : [ {type : 'max', name: '最大值'}, {type : 'min', name: '最小值'} ] }, markLine:{ label:{ formatter:'{b}:{c}ml' }, data:[{ name:'降水量平均线', type:'average', }], }, }, { name: '蒸发量', type: 'bar', data: [2.0, 4.9, 7.0, 23.2, 25.6, 76.7, 135.6, 162.2, 32.6, 20.0, 6.4, 3.3], barWidth: '30%', itemStyle: { color:'#51FFAE', }, markPoint : { symbolSize:60, data : [ {type : 'max', name: '最大值'}, {type : 'min', name: '最小值'} ] }, markLine:{ label:{ formatter:'{b}:{c}ml' }, data:[{ name:'蒸发量平均线', type:'average', }], }, }, ] };