延时图形表示
Timelapse graph representation
有什么方法可以将下一个数据结构转换为用于 Highcharts 绘图的活动进程列表吗?
原始结果
Started At; Taken Time; Number of started processes
1; 12; 1
8; 3; 2
要转换成
Time; Active processes
1; 1
2; 1
...
7; 1
8; 3
9; 3
10; 3
11; 1
12; 1
13; 0
您需要使用 seriesMapping
属性 来创建所需格式的数据。
seriesMapping: [{
x: 0,
takenTime: 1,
y: 2
}]
现场演示: https://jsfiddle.net/BlackLabel/enz4mudL/
API参考:https://api.highcharts.com/highcharts/data.seriesMapping
有什么方法可以将下一个数据结构转换为用于 Highcharts 绘图的活动进程列表吗?
原始结果
Started At; Taken Time; Number of started processes
1; 12; 1
8; 3; 2
要转换成
Time; Active processes
1; 1
2; 1
...
7; 1
8; 3
9; 3
10; 3
11; 1
12; 1
13; 0
您需要使用 seriesMapping
属性 来创建所需格式的数据。
seriesMapping: [{
x: 0,
takenTime: 1,
y: 2
}]
现场演示: https://jsfiddle.net/BlackLabel/enz4mudL/
API参考:https://api.highcharts.com/highcharts/data.seriesMapping