encodle / gflot

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

Need Dual Axis Support #17

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
gflot doesn't seem to support dual Y-Axes as shown here:

http://people.iola.dk/olau/flot/examples/dual-axis.html

This basically requires a few additional properties in the JavaScript. On 
the series, we need this:
  yaxis: 2

And also a y2axis formatter:
  y2axis: { ... }

I'm attaching a patch that adds a few trivial methods, thus supporting this 
feature.

PlotOptions.java - added a setY2AxisOptions(...) method
SeriesHandler.java - added a setY2Axis() method
Series.java - added a setY2Axis() method

Original issue reported on code.google.com by burke.e...@gmail.com on 13 Jan 2010 at 5:33

GoogleCodeExporter commented 8 years ago
We were discussing this here where I work, and my patch might be too rigid. 
Specifically, flot supports many axes, not just two. So instead of the static 
methods I 
submitted, it might be better to introduce an API where the caller can pass the 
axis 
index as a parameter.

Original comment by burke.e...@gmail.com on 13 Jan 2010 at 5:44

GoogleCodeExporter commented 8 years ago
I'm attaching an improved patch that supports any number of Y-axes.

Original comment by burke.e...@gmail.com on 13 Jan 2010 at 7:53

Attachments:

GoogleCodeExporter commented 8 years ago

Original comment by nmr.morel on 4 Jan 2012 at 9:35

GoogleCodeExporter commented 8 years ago

Original comment by nmr.morel on 4 Feb 2012 at 5:37

GoogleCodeExporter commented 8 years ago

Original comment by nmr.morel on 11 Feb 2012 at 4:39