Reputation: 2465
I have the following code:
LineGraphSeries<DataPoint> series = new LineGraphSeries<>(arr);
graphView.addSeries(series);
graphView.getViewport().setMaxX(31);
graphView.getViewport().setMaxY(150);
graphView.getViewport().setMinX(1);
graphView.getViewport().setMinY(0);
I need to set maximal and minimal values of axises by this code, but when I run the program I have this values:
What's the matter?
Upvotes: 2
Views: 267