问题
I want to reduce the scale of my GraphView
to one.
I want to be displayed from 0 -> 15, one by one and not 0, 5, 10, 15.
This is what I have tried:
graphView.getViewport().setYAxisBoundsManual(true);
graphView.getViewport().setMinX(-15);
graphView.getViewport().setMaxX(15);
graphView.getViewport().setXAxisBoundsManual(true);
graphView.getViewport().setMinY(-15);
graphView.getViewport().setMaxY(15);
PointsGraphSeries<DataPoint> series = new PointsGraphSeries<>(new DataPoint[] {
//Add DataPoint objects
});
graphView.addSeries(series);
series.setShape(PointsGraphSeries.Shape.POINT);
Hot can I solve this?
来源:https://stackoverflow.com/questions/54752299/how-to-reduce-the-scale-of-graphview-to-one