Skip to content

Commit

Permalink
Merge pull request #74 from RainInFall/master
Browse files Browse the repository at this point in the history
add drawCubic of LineChart config
  • Loading branch information
hongyin163 authored Mar 22, 2017
2 parents d352e46 + b0ec4a5 commit 140b0f3
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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"));
Expand Down

0 comments on commit 140b0f3

Please sign in to comment.