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 @@
s.bars = $.extend(true, {}, options.bars, s.bars);
if (s.shadowSize == null)
s.shadowSize = options.shadowSize;
if (s.xaxis && s.xaxis == 2)
s.xaxis = axes.x2axis;
else
if (!s.xaxis)
s.xaxis = axes.xaxis;
if (s.yaxis && s.yaxis == 2)
s.yaxis = axes.y2axis;
else
if (s.xaxis == 1)
s.xaxis = axes.xaxis;
else if (s.xaxis == 2)
s.xaxis = axes.x2axis;
if (!s.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