wildanSawaludin / flot

Automatically exported from code.google.com/p/flot
MIT License
0 stars 0 forks source link

Changes to getOptions xaxis or yaxis have no effect #582

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago

Original comment by dnsch...@gmail.com on 5 Jun 2012 at 3:39

GoogleCodeExporter commented 9 years ago

Original comment by dnsch...@gmail.com on 5 Jun 2012 at 3:39