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"));