How to reduce the scale of GraphView to one?

那年仲夏 提交于 2020-01-06 06:04:30

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!