From d6d287220cb80eeab0821591b07444958e4ae3f7 Mon Sep 17 00:00:00 2001 From: RainInFall Date: Fri, 10 Mar 2017 08:48:37 +0800 Subject: [PATCH] add drawCubic add drawCubic --- .../java/cn/mandata/react_native_mpchart/MPLineChartManager.java | 1 + 1 file changed, 1 insertion(+) diff --git a/android/src/main/java/cn/mandata/react_native_mpchart/MPLineChartManager.java b/android/src/main/java/cn/mandata/react_native_mpchart/MPLineChartManager.java index 115e0a7..b56525a 100644 --- a/android/src/main/java/cn/mandata/react_native_mpchart/MPLineChartManager.java +++ b/android/src/main/java/cn/mandata/react_native_mpchart/MPLineChartManager.java @@ -79,6 +79,7 @@ public void setData(LineChart chart,ReadableMap rm){ entries.add(be);*/ ReadableMap config= map.getMap("config"); LineDataSet dataSet=new LineDataSet(entries,label); + if(config.hasKey("drawCubic")) dataSet.setDrawCubic(config.getBoolean("drawCubic")); if(config.hasKey("drawCircles")) dataSet.setDrawCircles(config.getBoolean("drawCircles")); if(config.hasKey("circleSize")) dataSet.setCircleSize((float) config.getDouble("circleSize")); if(config.hasKey("lineWidth")) dataSet.setLineWidth((float) config.getDouble("lineWidth"));