Is there any way to convert next data structure into a list of active processes for Highcharts plotting?
Original result
Started At; Taken Time; Number of started processes
1; 12; 1
8; 3; 2
to be converted into
Time; Active processes
1; 1
2; 1
...
7; 1
8; 3
9; 3
10; 3
11; 1
12; 1
13; 0
You need to use the seriesMapping property to create the required format of data.
seriesMapping: [{
x: 0,
takenTime: 1,
y: 2
}]
Live demo: https://jsfiddle.net/BlackLabel/enz4mudL/
API Reference: https://api.highcharts.com/highcharts/data.seriesMapping