MPAndroidChart icon indicating copy to clipboard operation
MPAndroidChart copied to clipboard

Line chart values and Y Axis labels are overlapping

Open modislaszlox2 opened this issue 8 years ago • 6 comments

I have the following issue with one of my charts:

line_chart

The value overlaps the Y Axis label. The "value" text size was increased for better readability but caused this issue dataSet.valueTextSize = 10f

modislaszlox2 avatar Sep 22 '17 15:09 modislaszlox2

Hello @PhilJay

Do you have any idea how to fix this issue?

modislaszlox2 avatar Oct 10 '17 12:10 modislaszlox2

facing same issue. is there any solution?

ramesh-anandan avatar Jun 02 '18 08:06 ramesh-anandan

I have also this issue. Also dataset value overlap to line, in above screen data value 24800 and 56575 are overlap on line, This should also be dynamic.

I have one solution but it will work when we display initial time, but when we scroll or zoom in/out issue will occur.

XAxis xAxis = testChart.getXAxis(); xAxis.setAxisMinimum(-0.2f);

The first point of line will start from keeping some space from left side. So initially it will not look overlapping.

jayesh28589 avatar Aug 23 '18 06:08 jayesh28589

Also have this issue, please provide solution.

Iwuaa avatar Mar 22 '19 18:03 Iwuaa

have anyone found any solution regarding this?

rathorerahul586 avatar Feb 01 '21 05:02 rathorerahul586

I have also this issue. Also dataset value overlap to line, in above screen data value 24800 and 56575 are overlap on line, This should also be dynamic.

I have one solution but it will work when we display initial time, but when we scroll or zoom in/out issue will occur.

XAxis xAxis = testChart.getXAxis(); xAxis.setAxisMinimum(-0.2f);

The first point of line will start from keeping some space from left side. So initially it will not look overlapping.

this solution messes up xAxis values.

asadwaheed1 avatar Nov 30 '22 13:11 asadwaheed1