I am creating a gantt diagram using Highcharts for a process that has three-phase request, presentation, and approval. It has two stacks for planned and actual. I used highcharts stacked bars to represent the data constructed this way jsFiddle of Gantt
Instead of data like
series: [{
name: 'Requested',
data: [1,3,4,5,6],
stack: 'Planned'
}, {
name: 'Requested',
data: [2,4,5,7,8],
stack: 'Actual'
}, {
name: 'Submitted',
data: [2,3,2,3,4],
stack: 'Planned'
}, {
name: 'Submitted',
data: [3,5,2,3,4],
stack: 'Actual'
}, {
name: 'Approved',
data: [6,3,2,3,4],
stack: 'Planned'
}, {
name: 'Approved',
data: [2,4,2,3,4],
stack: 'Actual'
}]
I want the data to be dates here. I have the first, second and third dates for Requested, Submission and Approval, respectively.
series: [{
name: 'Part1',
data: [Date.UTC(2013,01,12),Date.UTC(2013,01,23),Date.UTC(2013,02,05)],
stack: 'Planned'
}, {
name: 'Part1',
data: [Date.UTC(2013,01,15),Date.UTC(2013,01,29),Date.UTC(2013,02,05)],
stack: 'Actual'
},]
I need the series name along the y axis to be taken from serial data
xAxis: {
categories: ['Part1', 'Part2', 'Part3', 'Part4', 'Part5']
},
and 1. the beginning should be from the data [0], which means that it will contain two bars and three points. 2. I need a date difference in the bar, so I can show the time for each activity.
jsfiddle,