fixed LineChartRenderer to get correct x values when using cubicFill

This commit is contained in:
Julian Köpke 2016-08-17 19:44:48 +02:00
parent 5daa6dc23c
commit cc971a7d02

View file

@ -252,8 +252,8 @@ public class LineChartRenderer extends LineRadarRenderer {
float fillMin = dataSet.getFillFormatter()
.getFillLinePosition(dataSet, mChart);
spline.lineTo(bounds.min + bounds.range, fillMin);
spline.lineTo(bounds.min, fillMin);
spline.lineTo(dataSet.getEntryForIndex(mXBounds.max).getX(), fillMin);
spline.lineTo(dataSet.getEntryForIndex(mXBounds.min).getX(), fillMin);
spline.close();
trans.pathValueToPixel(spline);