As per the document changes to values returned by getOptions()
should take effect within FLOT, but this does not work with xaxis, or yaxis.
The options get bound to xaxis.options and yaxis.options such that the later
changes are not updated.
In flot.navigate the following work around was added to address this issue.
and get the original options rather than the copied option. starting at line 236
$.each(plot.getAxes(), function(_, axis) {
var opts = axis.options,
min = minmax[axis.direction].min,
max = minmax[axis.direction].max,
zr = opts.zoomRange;
//fix 8/1/2011 pull in original options
// so that they can be updated
opts = plot.getOptions()[axis.direction+'axis']
zr = opts.zoomRange;
Original issue reported on code.google.com by schugSc...@gmail.com on 1 Aug 2011 at 4:35
Original issue reported on code.google.com by
schugSc...@gmail.com
on 1 Aug 2011 at 4:35