youcef92 / flotr

Automatically exported from code.google.com/p/flotr
0 stars 0 forks source link

Support for multiple Y axises. #96

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
there isn't possible to have multiple Y axises, each one associated with a
different data set??

Original issue reported on code.google.com by yunier.s...@gmail.com on 16 Oct 2009 at 1:01

GoogleCodeExporter commented 8 years ago
you can have two Y axes if you use the version in the SVN trunk :
http://code.google.com/p/flotr/source/browse/#svn/trunk/flotr/flotr/prototype

And by specifying the Y axis you want a series to use :

var series = [
{data: [[0, 0], [1, 5], ...], yaxis: 1},
{data: [[0, 3], [1, 4], ...], yaxis: 2}
];

The second Y axis will on the right.

You can do the same with X axis (one on the bottom, the second on the top).
No support for more axes is planned, yet.

To go further, you should try the Playground : 
http://phenxdesign.net/projects/flotr/playground/

Original comment by fabien.menager on 23 Oct 2009 at 9:10

GoogleCodeExporter commented 8 years ago

Original comment by peter....@solide-ict.nl on 22 Jun 2010 at 1:25