var line1 = [
['2011-12-06', 68],['2011-12-07', 27],
['2011-12-08', 12],['2011-12-09', 81],
['2011-12-10', 40],['2011-12-11', 93],
['2011-12-12', 34],['2011-12-13', 24],
['2011-12-14', 37],['2011-12-15', 80]];
var line2 = [
['2011-12-06 00:50', 68],['2011-12-06 00:55', 27],
['2011-12-06 01:00', 12],['2011-12-06 01:05', 81],
['2011-12-06 01:10', 40],['2011-12-06 01:15', 93],
['2011-12-06 01:20', 34],['2011-12-06 01:25', 24],
['2011-12-06 01:30', 37],['2011-12-06 01:35', 80]];
var plot = $.jqplot('chart', [line2], {
axes:{
xaxis:{
renderer:$.jqplot.DateAxisRenderer,
// min: '2011-12-06 00:00'
},
},
cursor:{ zoom:true, },
});
It renders and zooms fine for line1 but not for line2. line2 doesn't
render as expected. It looks like the min and max used to set the
xaxis and its scale are not being set correctly in the
DateAxisRenderer. If I set the min by hand for line2, the graph
renders correctly. Which would be fine for me...except that I would
like to use cursor zoom which doesn't work because min/max are not
behaving...I suspect.
Ideas?
--You received this message because you are subscribed to the Google Groups "jqplot-users" group.To post to this group, send email to jqplot...@googlegroups.com.To unsubscribe from this group, send email to jqplot-users...@googlegroups.com.For more options, visit this group at http://groups.google.com/group/jqplot-users?hl=en.
['2012-01-01 1:00:15 AM','11'],['2012-01-01
1:00:30 AM','25'],['2012-01-01 1:00:45 AM','28'],['2012-01-01 1:01:00 AM','28'],['2012-01-01 1:01:15
PM','22']
['2012-01-01 1:00:15 AM','15'],['2012-01-01 1:00:30 AM','29'],['2012-01-01
1:00:45 AM','25'],['2012-01-01 1:01:00 AM','24'],['2012-01-01 1:01:15 AM','16']