edw1nzhao / cs2340_group16

CS2340 Group 16 Crowd-Sourced Water Reporting App
2 stars 1 forks source link

Extend x-axis length to 12. #134

Closed tomonarifeehan closed 7 years ago

tomonarifeehan commented 7 years ago

Currently the x-axis stops at x=8, however there are 12 months in a year. To extend the x-axis. My current idea for a workaround is to add several DataPoints at the end with value 0.

In other words, new DataPoint(13, 0), new DataPoint(14, 0), new DataPoint(15, 0)

I haven't tried this yet.

tomonarifeehan commented 7 years ago

Fix:

graphView.getViewport().setMaxX(13);
graphView.getViewport().setXAxisBoundsManual(true);
tomonarifeehan commented 7 years ago

DONE