[英]How can I achieve this using HighCharts library
我准備了一個使用stacked bar
的演示,這可能是您創建與共享圖片中相同的圖表的良好起點。
演示: https://jsfiddle.net/BlackLabel/qum72ejL/
Highcharts.chart('container', {
chart: {
type: 'bar'
},
yAxis: {
min: 0,
max: 100
},
legend: {
reversed: true
},
plotOptions: {
series: {
stacking: 'normal',
dataLabels: {
enabled: true,
format: '{y} %'
}
}
},
series: [{
name: 'Other',
data: [11]
}, {
name: 'Dust Collection',
data: [26]
}, {
name: 'Compressed Air',
data: [17]
}, {
name: 'Vacuum System',
data: [34]
}, {
name: 'Chillers',
data: [12]
}]
});
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.