Skip to content

Commit

Permalink
Merge pull request #65 from farzadab/master
Browse files Browse the repository at this point in the history
Added option wordWrap to legend
  • Loading branch information
hongyin163 authored Dec 11, 2016
2 parents c124b4f + 31c5876 commit 299da55
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -338,6 +338,7 @@ public void setLegend(BarLineChartBase chart,ReadableMap v){
if(v.hasKey("direction")) legend.setDirection(Legend.LegendDirection.valueOf(v.getString("direction")));

if(v.hasKey("legendForm")) legend.setForm(Legend.LegendForm.valueOf(v.getString("legendForm")));
if(v.hasKey("wordWrap")) legend.setWordWrapEnabled(v.getBoolean("wordWrap"));

if(v.hasKey("textColor")) legend.setTextColor(Color.parseColor(v.getString("textColor")));
if(v.hasKey("textSize")) legend.setTextSize((float) v.getDouble("textSize"));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ public void setLegend(PieRadarChartBase chart,ReadableMap v){
if(v.hasKey("direction")) legend.setDirection(Legend.LegendDirection.valueOf(v.getString("direction")));

if(v.hasKey("legendForm")) legend.setForm(Legend.LegendForm.valueOf(v.getString("legendForm")));
if(v.hasKey("wordWrap")) legend.setWordWrapEnabled(v.getBoolean("wordWrap"));

if(v.hasKey("textColor")) legend.setTextColor(Color.parseColor(v.getString("textColor")));
if(v.hasKey("textSize")) legend.setTextSize((float) v.getDouble("textSize"));
Expand Down

0 comments on commit 299da55

Please sign in to comment.