MPAndroidChart icon indicating copy to clipboard operation
MPAndroidChart copied to clipboard

LineChart XAxis to bottom

Open anhth169 opened this issue 11 years ago • 4 comments

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.

anhth169 avatar Mar 12 '15 02:03 anhth169

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.

PhilJay avatar Mar 13 '15 15:03 PhilJay

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.

JepMalm avatar Nov 08 '16 14:11 JepMalm

@malmberg2 did you solve it? I have the same issue: need to load data on left swiping

illiaNaumov avatar Feb 01 '17 09:02 illiaNaumov

@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....

AnkitTorenzo avatar Aug 18 '17 06:08 AnkitTorenzo