Toggle navigation
安全抽检专项
By
小***物
2018-03-29 15:25:04
脚本
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:'#FFFFFF', title : { text: '男性女性身高体重分布', subtext: '抽样调查来自: Heinz 2003' }, grid: { left: '13%', right: '14%', bottom: '23%', top: '13%', containLabel: true }, tooltip : { trigger: 'item', showDelay : 0, formatter : function (params) { if (params.value.length > 1) { return params.seriesName + ' :
' + params.value[0] + 'cm ' + params.value[1] + 'kg '; } else { return params.seriesName + ' :
' + params.name + ' : ' + params.value + 'kg '; } }, axisPointer:{ show: true, type : 'cross', lineStyle: { type : 'dashed', width : 1 } } }, legend: { data: ['女性','男性'], left: 'right' }, xAxis : {splitLine: { lineStyle: { show:true, type: 'dashed' } },"axisLabel": { "interval": 0, rotate:40, textStyle:{ fontSize:12, color:'#000' },}, data: ['南宁市', '柳州市', '桂林市', '梧州市', '北海市', '防城港市', '钦州市' ,'贵港市','玉林市','百色市','贺州市','河池市','来宾市','崇左市']}, yAxis : [ { type : 'value', name : '检验结果值', scale:true, axisLabel : { formatter: '{value}' }, splitLine: { lineStyle: { type: 'dashed' } } } ], series : [ { name:'男性', type:'scatter', data: [['柳州市', 1.6], ['南宁市', 2.8],['桂林市', 2.6], ['梧州市', 1.8], ['柳州市', 2.1], ['南宁市', 1.3],['桂林市', 5.6], ['崇左市', 1.9], ['百色市', 3.1], ['防城港市', 2.8],['来宾市', 4.6], ['贺州市', 1.8], ['百色市', 2.6], ['南宁市', 3.8],['桂林市', 1.6], ['梧州市', 2.8], ['柳州市', 1.2], ['防城港市', 1.8],['来宾市', 2.6], ['梧州市', 3.8], ['柳州市', 3.6], ['南宁市', 5.8],['桂林市', 2.6], ['梧州市', 4.8], ['来宾市', 2.6], ['南宁市', 4.8],['来宾市', 3.6], ['崇左市', 5.8], ['钦州市', 1.6], ['贺州市', 3.8],['桂林市', 4.6], ['贺州市', 4.8], ['柳州市', 3.6], ['南宁市', 2.8],['河池市', 3.6], ['梧州市', 2.8], ['百色市', 1.6], ['来宾市', 1.8],['桂林市', 5.6], ['贺州市', 3.8], ['柳州市', 2.6], ['河池市', 3.8],['贺州市', 2.6], ['梧州市', 1.8], ['来宾市', 3.6], ['南宁市', 2.8],['桂林市', 1.6], ['崇左市', 5.8], ['柳州市', 1.6], ['河池市', 2.8],['桂林市', 2.6], ['梧州市', 4.8], ['河池市', 2.6], ['南宁市', 1.8],['贺州市', 3.6], ['梧州市', 8.8], ['河池市', 3.6], ['河池市', 4.8],['桂林市', 4.6], ['崇左市', 1.8], ], color: new echarts.graphic.RadialGradient(0.4, 0.3, 1, [{ offset: 0, color: 'rgb(164,298, 250)' }, { offset: 1, color: 'rgb(33, 207, 209)' }]), markPoint : { data : [ {type : 'max', name: '最大值'}, {type : 'min', name: '最小值'} ] }, markLine : { data : [ {type : 'average', name: '平均值'} ] } } ] };