MPAndroidChart icon indicating copy to clipboard operation
MPAndroidChart copied to clipboard

zero data line can only be drawn a half in LineChart

Open OhPeterPan opened this issue 3 years ago • 3 comments

In LineChart, if you add some zero line data, the zero data line can only be drawn a half.

version:3.1.0

OhPeterPan avatar Jun 14 '22 03:06 OhPeterPan

You can try y.axisMinimum = -1f if your chart Y-axis is fixed.below image is my chart when I use

y.axisMinimum = -1f
y.axisMaximum = 120f

image

If anybody has better solution,pls tell me!

gs666 avatar Jun 15 '22 08:06 gs666

You can try y.axisMinimum = -1f if your chart Y-axis is fixed.below image is my chart when I use

y.axisMinimum = -1f
y.axisMaximum = 120f

image

If anybody has better solution,pls tell me!

BarLineChartBase Notes //canvas.clipRect(mViewPortHandler.getContentRect());

OhPeterPan avatar Jun 17 '22 06:06 OhPeterPan

OK,I will try

gs666 avatar Jun 17 '22 07:06 gs666