Rank: Advanced Member
Groups: Administrators, DataVizJavaScript, jQueryChart, jQueryDV, MvcChart, Registered Joined: 1/3/2011(UTC) Posts: 483
Thanks: 0 times Was thanked: 87 time(s) in 87 post(s)
|
Hi, you need to use 'gantt' chart in your case. Try using this code: Code:$(document).ready(function () { $('#jqChart').jqChart({ title: { text: 'Range Bar Chart' }, //axes: [ // { // type: 'dateTime', // location: 'bottom', // minimum: new Date(2015, 6, 2), // maximum: new Date(2015, 6, 4), // interval: 120, // intervalType: 'minutes' // 'years' | 'months' | 'weeks' | 'days' | 'minutes' | 'seconds' | 'millisecond' // } //], series: [ { type: 'gantt', title: 'LOST', data: [ ['ADWSB01'], ['ADWSB02', new Date('2015/07/02 19:54:29'), new Date('2015/07/02 19:56:46')], ['ADWSB03']] } , { type: 'gantt', title: 'MON', data: [ ['ADWSB01', new Date('2015/07/02 19:28:45'), new Date('2015/07/02 20:29:58')], ['ADWSB02', new Date('2015/07/02 07:30:00'), new Date('2015/07/02 08:03:12')], ['ADWSB02', new Date('2015/07/02 08:25:02'), new Date('2015/07/02 08:41:55')], ['ADWSB02', new Date('2015/07/02 10:42:08'), new Date('2015/07/02 10:42:22')], ['ADWSB02', new Date('2015/07/02 13:03:27'), new Date('2015/07/02 13:03:50')], ['ADWSB03', new Date('2015/07/02 19:27:29'), new Date('2015/07/02 20:53:16')]] }, { type: 'gantt', title: 'RUN', data: [ ['ADWSB01', new Date('2015/07/02 07:30:00'), new Date('2015/07/02 19:28:45')], ['ADWSB01', new Date('2015/07/02 20:29:58'), new Date('2015/07/02 22:18:38')], ['ADWSB01', new Date('2015/07/02 22:25:19'), new Date('2015/07/03 03:04:10')], ['ADWSB01', new Date('2015/07/03 03:22:29'), new Date('2015/07/03 07:30:00')], ['ADWSB02', new Date('2015/07/02 08:03:12'), new Date('2015/07/02 08:25:02')], ['ADWSB02', new Date('2015/07/02 08:41:55'), new Date('2015/07/02 10:35:55')], ['ADWSB02', new Date('2015/07/02 10:42:22'), new Date('2015/07/02 13:03:27')], ['ADWSB02', new Date('2015/07/02 13:03:50'), new Date('2015/07/02 19:54:29')], ['ADWSB02', new Date('2015/07/02 19:56:46'), new Date('2015/07/02 22:17:03')], ['ADWSB02', new Date('2015/07/02 22:20:03'), new Date('2015/07/03 07:30:00')], ['ADWSB03', new Date('2015/07/02 07:30:00'), new Date('2015/07/02 19:27:29')], ['ADWSB03', new Date('2015/07/02 20:53:16'), new Date('2015/07/03 07:16:06')], ['ADWSB03', new Date('2015/07/03 07:24:25'), new Date('2015/07/03 07:30:00')]] }, { type: 'gantt', title: 'T_MD', data: [ ['ADWSB01', new Date('2015/07/02 22:18:38'), new Date('2015/07/02 22:25:19')], ['ADWSB01', new Date('2015/07/03 03:04:10'), new Date('2015/07/03 03:22:29')], ['ADWSB02', new Date('2015/07/02 22:17:03'), new Date('2015/07/02 22:20:03')], ['ADWSB03', new Date('2015/07/03 07:16:06'), new Date('2015/07/03 07:24:25')]] }, { type: 'gantt', title: 'W_EN', data: [['ADWSB01'], ['ADWSB02', new Date('2015/07/02 10:35:55'), new Date('2015/07/02 10:41:21')], ['ADWSB03']] }, { type: 'gantt', title: 'W_MF', data: [ ['ADWSB01'], ['ADWSB02', new Date('2015/07/02 10:41:21'), new Date('2015/07/02 10:42:08')], ['ADWSB03']] } ] }); }); if '2015/07/02 19:54:29' formatting doesn't work, change it to '2015-07-02 19:54:29' Best Regards, Dragan Matek jqChart Inc.
|