HighCharts:显示3个vu-meters

问题描述 投票:0回答:1

我尝试在一个呼叫中显示3个vu-meters,但是2和3的vu-meters <。

3 Vu-meters Highcharts

是否可以同时显示3个vu-meter,或者组件已锁定?

javascript highcharts display
1个回答
0
投票
您需要定义其他paneyAxisseries

pane: [{ startAngle: -45, endAngle: 45, background: null, center: ['20%', '145%'], size: 300 }, { startAngle: -45, endAngle: 45, background: null, center: ['50%', '145%'], size: 300 }, { startAngle: -45, endAngle: 45, background: null, center: ['80%', '145%'], size: 300 }], yAxis: [{ min: -20, max: 6, minorTickPosition: 'outside', tickPosition: 'outside', labels: { rotation: 'auto', distance: 20 }, plotBands: [{ from: 0, to: 6, color: '#C02316', innerRadius: '100%', outerRadius: '105%' }], pane: 0, title: { text: 'VU<br/><span style="font-size:8px">Channel A</span>', y: -40 } }, { min: -20, max: 6, minorTickPosition: 'outside', tickPosition: 'outside', labels: { rotation: 'auto', distance: 20 }, plotBands: [{ from: 0, to: 6, color: '#C02316', innerRadius: '100%', outerRadius: '105%' }], pane: 1, title: { text: 'VU<br/><span style="font-size:8px">Channel B</span>', y: -40 } }, { min: -20, max: 6, minorTickPosition: 'outside', tickPosition: 'outside', labels: { rotation: 'auto', distance: 20 }, plotBands: [{ from: 0, to: 6, color: '#C02316', innerRadius: '100%', outerRadius: '105%' }], pane: 2, title: { text: 'VU<br/><span style="font-size:8px">Channel B</span>', y: -40 } }], series: [{ name: 'Channel A', data: [-20], yAxis: 0 }, { name: 'Channel B', data: [-20], yAxis: 1 }, { name: 'Channel C', data: [-10], yAxis: 2 }]


实时演示: https://jsfiddle.net/BlackLabel/43ft09mq/

API参考:

https://api.highcharts.com/highcharts/series.gauge
© www.soinside.com 2019 - 2024. All rights reserved.