From 9544b05f5a70a70e7918deae26a64adc2aede49c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=AE=80=E9=9B=A8=E5=B1=B1=E8=88=8D?= Date: Fri, 19 Mar 2021 12:34:59 +0800 Subject: [PATCH] Update YAxisRenderer.java Added Y axis dashed line configuration --- .../com/github/mikephil/charting/renderer/YAxisRenderer.java | 1 + 1 file changed, 1 insertion(+) diff --git a/MPChartLib/src/main/java/com/github/mikephil/charting/renderer/YAxisRenderer.java b/MPChartLib/src/main/java/com/github/mikephil/charting/renderer/YAxisRenderer.java index 53cca7ee03..a412a58ec1 100644 --- a/MPChartLib/src/main/java/com/github/mikephil/charting/renderer/YAxisRenderer.java +++ b/MPChartLib/src/main/java/com/github/mikephil/charting/renderer/YAxisRenderer.java @@ -96,6 +96,7 @@ public void renderAxisLine(Canvas c) { mAxisLinePaint.setColor(mYAxis.getAxisLineColor()); mAxisLinePaint.setStrokeWidth(mYAxis.getAxisLineWidth()); + mAxisLinePaint.setPathEffect(mYAxis.getAxisLineDashPathEffect()); if (mYAxis.getAxisDependency() == AxisDependency.LEFT) { c.drawLine(mViewPortHandler.contentLeft(), mViewPortHandler.contentTop(), mViewPortHandler.contentLeft(),