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 can use axis plot line: http://www.jqchart.com/jquery/chart/ChartAxes/PlotLinesIn your case the code should look like: Code: $(document).ready(function () { $('#jqChart').jqChart({ title: { text: 'DateTime Axis' }, animation: { duration: 1 }, axes: [ { type: 'dateTime', location: 'bottom', plotLines: [ { value: new Date(2011, 1, 16), strokeStyle: 'red', lineWidth: 2 } ] } ], series: [ { type: 'line', data: [[new Date(2011, 1, 6), 70], [new Date(2011, 1, 8), 82], [new Date(2011, 1, 10), 85], [new Date(2011, 1, 12), 70], [new Date(2011, 1, 14), 65], [new Date(2011, 1, 16), 68]] } ] }); }); Best Regards, Dragan Matek jqChart Inc.
|