GraphView
GraphView copied to clipboard
BarGraphSeries not drawed on second scale
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.
Having the same problem, any workaround so far?
@janvv Not that I know of. Unfortunately, I've abandoned hope of implementing a planned feature because of this bug.
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.