LineChart XAxis to bottom
hi PhilJay, I have 2 questions:
- i want to set XAxis to bottom LineChart
- if i have 20 values of XAxis but i just want to display 10 values, other values will be display when i swipe to left, can i do? Sorry, my English is so bad.
Yes.
Use chart.getXAxis().setPosition(XAxisPosition.BOTTOM) to set the x-axis position.
You can use chart.setVisibleXRange(10) to show only 10 values maximum.
what if i want to show 100 values on the screen, but want the data to keep updating with new values. and still only show me the latest 100 values.
@malmberg2 did you solve it? I have the same issue: need to load data on left swiping
@PhilJay can you tell me that how to do the same in V2.2.4
i'm using V 2.2.4 and chart.setVisibleXRange(float,float) requires instead of chart.setVisibleXRange(float) what to do....