GraphView icon indicating copy to clipboard operation
GraphView copied to clipboard

BarGraphSeries not drawed on second scale

Open MilosKozak opened this issue 7 years ago • 4 comments

MilosKozak avatar Apr 21 '17 21:04 MilosKozak

I can confirm this issue is persisting.

LineGraphSeries<DataPoint> averageSeries = new LineGraphSeries<>(averagePricePoints); averageSeries.setColor(Color.GREEN); graph.addSeries(averageSeries);

The above will graph perfectly fine, as will the following:

LineGraphSeries<DataPoint> averageSeries = new LineGraphSeries<>(averagePricePoints); averageSeries.setColor(Color.GREEN); graph.getSecondScale().addSeries(averageSeries); graph.getSecondScale().setMinY(0); graph.getSecondScale().setMaxY(100);

However, when you change it to the following:

BarGraphSeries<DataPoint> averageSeries = new BarGraphSeries<>(averagePricePoints); averageSeries.setColor(Color.GREEN); graph.getSecondScale().addSeries(averageSeries); graph.getSecondScale().setMinY(0); graph.getSecondScale().setMaxY(100);

It ceases to graph correctly.

EricPHamilton avatar May 26 '18 23:05 EricPHamilton

Having the same problem, any workaround so far?

janvv avatar Aug 31 '18 21:08 janvv

@janvv Not that I know of. Unfortunately, I've abandoned hope of implementing a planned feature because of this bug.

EricPHamilton avatar Sep 07 '18 14:09 EricPHamilton

I haven't implemented it but I think I have a workaround. I will just plot the second bargraphseries "on the first axis". But scale it so the graph actually matches the values on the secondary axis. I will add some code once I've implemented it.

Shakedimus avatar Nov 29 '18 20:11 Shakedimus