Commit 3f492583 authored by huai.li's avatar huai.li

仪表盘

parent 0e34ecd8
...@@ -72,8 +72,7 @@ export default { ...@@ -72,8 +72,7 @@ export default {
], ],
lineWidth: 0, lineWidth: 0,
minorTickInterval: null, minorTickInterval: null,
tickPixelInterval: 400, tickWidth: 2,
tickWidth: 0,
title: { title: {
y: -70 y: -70
}, },
...@@ -94,24 +93,28 @@ export default { ...@@ -94,24 +93,28 @@ export default {
let chart1 = Highcharts.chart('container-speed', { let chart1 = Highcharts.chart('container-speed', {
yAxis: { yAxis: {
min: 0, min: 0,
max: 200, max: 50,
title: { title: {
text: '速度' text: '账户注册使用情况',
style: {
"font-weight": "bold"
},
y: -100
} }
}, },
credits: { credits: {
enabled: false enabled: false
}, },
series: [{ series: [{
name: '速度', name: '已注册账户数',
data: [80], data: [35],
dataLabels: { dataLabels: {
format: '<div style="text-align:center"><span style="font-size:25px;color:' + format: '<span style="color: #666666;fill: #666666;">已注册账户数</span></div><br/>' +
((Highcharts.theme && Highcharts.theme.contrastTextColor) || 'black') + '">{y}</span><br/>' + '<div style="text-align:center"><span style="font-size:25px;color:' +
'<span style="font-size:12px;color:silver">km/h</span></div>' ((Highcharts.theme && Highcharts.theme.contrastTextColor) || 'black') + '">{y}</span><span style="font-size:12px;color:silver">个</span><br/>'
}, },
tooltip: { tooltip: {
valueSuffix: ' km/h' valueSuffix: ''
} }
}] }]
}) })
...@@ -119,21 +122,25 @@ export default { ...@@ -119,21 +122,25 @@ export default {
let chart2 = Highcharts.chart('container-rpm', { let chart2 = Highcharts.chart('container-rpm', {
yAxis: { yAxis: {
min: 0, min: 0,
max: 5, max: 800,
title: { title: {
text: 'RPM' text: '账户有效期',
style: {
"font-weight": "bold"
},
y: -100
} }
}, },
series: [{ series: [{
name: 'RPM', name: 'RPM',
data: [1], data: [500],
dataLabels: { dataLabels: {
format: '<div style="text-align:center"><span style="font-size:25px;color:' + format: '<span style="color: #666666;fill: #666666;">剩余天数</span></div><br/>' +
((Highcharts.theme && Highcharts.theme.contrastTextColor) || 'black') + '">{y:.1f}</span><br/>' + '<div style="text-align:center"><span style="font-size:25px;color:' +
'<span style="font-size:12px;color:silver">* 1000 / min</span></div>' ((Highcharts.theme && Highcharts.theme.contrastTextColor) || 'black') + '">{y}</span><span style="font-size:12px;color:silver">天</span><br/>'
}, },
tooltip: { tooltip: {
valueSuffix: ' revolutions/min' valueSuffix: ''
} }
}] }]
}) })
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment