Questions about the MPAndroidChart library

Asked 2 years ago, Updated 2 years ago, 25 views

Configuring using the LineChart class in the MPAndroidChart library.

I want to lower the numbers such as 75 and 76 at the top, but I can't find the setting.

The graph is configuring only values on the Y-axis. The X-axis is the time that passes in real time.

YAxis leftAxis = mChart.getAxisLeft();
        leftAxis.removeAllLimitLines();
        leftAxis.setAxisMaxValue(100f);
        leftAxis.setAxisMinValue(0f);
        leftAxis.setStartAtZero(true);

I set the Y axis separately, but I didn't set the X axis~

android

2022-09-22 13:50

1 Answers

If you look at the document, there is a setPosition method in the XAxis class, so don't you think you're using this?

https://github.com/PhilJay/MPAndroidChart/wiki/XAxis-(XLabels)


2022-09-22 13:50

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.