Toggle navigation
分娩—黑白胎统计报表
By
幸运的久久飞翔
2017-09-29 07:42:41
脚本
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: "#404A59", color: ['#ffd285', '#ff733f', '#ec4863','#ffc0a9'], title: [{ text: '分娩—黑白胎统计报表', left: '40%', top: '6%', textStyle: { color: '#fff' } }], tooltip: { }, legend: { x: '30%', bottom: '1%', /*textStyle: { color: '#ffd285', },*/ data: ['白胎数', '黑胎数', '死仔总数', '产仔总数'], textStyle: { color: '#fff' } }, radar: { // shape: 'circle', indicator: [{ name: '白胎比例 ', max: 65 }, { name: '黑胎比例', max: 16 }, { name: '死胎比例', max: 30 } ], center: ['83%', '65%'], radius: 80 }, grid: { left: '10%', right: '32%', top: '16%', bottom: '6%', containLabel: true }, toolbox: { "show": false, feature: { saveAsImage: {} } }, xAxis: { type: 'category', "axisLine": { lineStyle: { color: '#c0576d' } }, "axisTick": { "show": false }, axisLabel: { textStyle: { color: '#fff' } }, boundaryGap: true, //false时X轴从0开始 data: ['2017/7', '2017/8', '2017/9', '2017/10', '2017/11', '2017/12', '2018/1'] }, yAxis: { "axisLine": { lineStyle: { color: '#c0576d' } }, splitLine: { show: true, lineStyle: { color: '#c0576d' } }, "axisTick": { "show": false }, axisLabel: { textStyle: { color: '#fff' } }, type: 'value' }, series: [ { name: '白胎数', smooth: true, type: 'bar', symbolSize: 8, //symbol: 'circle', data: [90, 50, 39, 50, 120, 82, 80] }, { name: '黑胎数', smooth: true, type: 'bar', symbolSize: 8, //symbol: 'circle', data: [70, 50, 50, 87, 90, 80, 70] }, { name: '死仔总数', smooth: true, type: 'bar', symbolSize: 8, //symbol: 'circle', data: [20, 10, 20, 12, 15, 20, 30] }, { name: '产仔总数', smooth: true, type: 'bar', symbolSize: 8, //symbol: 'circle', data: [290, 200, 210, 132, 115, 200, 190] },{ type: 'pie', center: ['83%', '20%'], radius: ['15%', '20%'], tooltip: { trigger: 'item', formatter: "{a}
{b} : {c} ({d}%)" }, label: { normal: { position: 'center' } }, data: [{ value: 335, name: '白胎比例 ', itemStyle: { normal: { color: '#ffd285' } }, label: { normal: { formatter: '{d} %', textStyle: { color: '#ffd285', fontSize: 20 } } } }, { value: 100, tooltip: { show: false }, itemStyle: { normal: { color: '#404A59' } }, label: { normal: { textStyle: { color: '#ffd285', }, formatter: '\n白胎比例 ' } } }] }, { type: 'radar', center: ['83%', '85%'], //radius: ['15%', '20%'], //name: '雷达', tooltip: { }, data: [{ value: [43, 10, 28, 35, 50, 19], name: '比例' }, ] } ] }