[英]Highcharts series bars - multiple series, same xAxis
I am working with Highcharts which represent a mission tracing.我正在与代表任务追踪的 Highcharts 合作。 The X Axis shows the name of each person and the Y axis is the duration time for each status. X 轴显示每个人的姓名,Y 轴是每个状态的持续时间。
An img for instance:以 img 为例:
I am wondering how can I repeat over a status series on the same X Axis like this:我想知道如何在同一个 X 轴上重复状态系列,如下所示:
Do you have an idea?你有想法吗? Please help :) Thanks!请帮忙:) 谢谢!
You can use two or more linked series with the same color and with [x, y]
data format, for example:您可以使用两个或多个具有相同颜色和[x, y]
数据格式的链接系列,例如:
series: [{
color: 'blue',
data: [
[0, 20],
[1, 6],
[2, 16]
]
}, {
data: [
[0, 20],
[1, 21],
[2, 16]
]
}, {
color: 'blue',
linkedTo: 0,
data: [
[1, 15]
]
}]
Live demo: http://jsfiddle.net/BlackLabel/hbecsx1p/现场演示: http : //jsfiddle.net/BlackLabel/hbecsx1p/
API Reference: https://api.highcharts.com/highcharts/series.bar.linkedTo API参考: https : //api.highcharts.com/highcharts/series.bar.linkedTo
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.