Commit eb45adb2 authored by olau@iola.dk's avatar olau@iola.dk

Fixed a bug with setData(getData()) and secondary axes

git-svn-id: https://flot.googlecode.com/svn/trunk@98 1e0a6537-2640-0410-bfb7-f154510ff394
parent 72ad98a3
...@@ -234,14 +234,22 @@ ...@@ -234,14 +234,22 @@
s.bars = $.extend(true, {}, options.bars, s.bars); s.bars = $.extend(true, {}, options.bars, s.bars);
if (s.shadowSize == null) if (s.shadowSize == null)
s.shadowSize = options.shadowSize; s.shadowSize = options.shadowSize;
if (s.xaxis && s.xaxis == 2)
s.xaxis = axes.x2axis; if (!s.xaxis)
else
s.xaxis = axes.xaxis; s.xaxis = axes.xaxis;
if (s.yaxis && s.yaxis == 2)
s.yaxis = axes.y2axis; if (s.xaxis == 1)
else s.xaxis = axes.xaxis;
else if (s.xaxis == 2)
s.xaxis = axes.x2axis;
if (!s.yaxis)
s.yaxis = axes.yaxis; s.yaxis = axes.yaxis;
if (s.yaxis == 1)
s.yaxis = axes.yaxis;
else if (s.yaxis == 2)
s.yaxis = axes.y2axis;
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment