Rank: Newbie
Groups: jQueryDV, Registered Joined: 11/9/2016(UTC) Posts: 3
Thanks: 1 times Was thanked: 0 time(s) in 0 post(s)
|
Thanks a lot, it's worked. How can I change Y-label (and in tooltip too) from 'Rest' to 'Activity'? And by zooming and visibleMinimum - shows first time the chart with X-axis start position at 00:00:00, but after zooming shows chart with X-axis start position from yesterday. Code:$(document).ready(function () { $('#jqChart').jqChart({ title: { text: 'Project Schedule' }, animation: { duration: 0.01 }, shadows: { enabled: true }, axes: [ { type: 'dateTime', interval: 60, intervalType: 'minutes', location: 'bottom', visibleMinimum: new Date(2013, 01, 30, 0, 0, 0), visibleMaximum: new Date(2013, 01, 30, 23,59,59), labels: { fillStyle: 'red', stringFormat: 'HH:mm' }, zoomEnabled: true } ], series: [ { type: 'gantt', title: 'Rest', data: [ ['Rest', new Date(2013,01,30,0,0,0), new Date(2013,01,30,2,50,0)], ['Rest', new Date(2013,01,30,8,32,0), new Date(2013,01,30,9,17,0),], ['Rest', new Date(2013,01,30,10,41,0), new Date(2013,01,30,11,9,0)], ['Rest', new Date(2013,01,30,4,11,0), new Date(2013,01,30,5,14,0)], ['Rest', new Date(2013,01,30,5,26,0), new Date(2013,01,30,8,32,0)] ] }, { type: 'gantt', title: 'Ready', data: [ ['Ready', new Date(2013,01,30,2,50,0), new Date(2013,01,30,4,11,0)], ['Ready', new Date(2013,01,30,5,23,0), new Date(2013,01,30,5,26,0)], ['Ready', new Date(2013,01,30,11,11,0), new Date(2013,01,30,11,22,0)] ] }, { type: 'gantt', title: 'Work', data: [ ['Work', new Date(2013,01,30,5,14,0), new Date(2013,01,30,5,21,0)], ['Work', new Date(2013,01,30,10,29,0), new Date(2013,01,30,10,31,0)], ['Work', new Date(2013,01,30,5,21,0), new Date(2013,01,30,5,23,0)] ] } ] }); });
|