PhilJay / MPAndroidChart

A powerful 🚀 Android chart view / graph view library, supporting line- bar- pie- radar- bubble- and candlestick charts as well as scaling, panning and animations.
Other
37.53k stars 9.01k forks source link

Line chart values and Y Axis labels are overlapping #3449

Open modislaszlox2 opened 6 years ago

modislaszlox2 commented 6 years ago

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 commented 6 years ago

Hello @PhilJay

Do you have any idea how to fix this issue?

ramesh-anandan commented 6 years ago

facing same issue. is there any solution?

jayesh28589 commented 6 years ago

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.

Iwuaa commented 5 years ago

Also have this issue, please provide solution.

rathorerahul586 commented 3 years ago

have anyone found any solution regarding this?

asadwaheed1 commented 1 year ago

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.