mahozad / android-pie-chart

Highly customizable Android library for drawing Pie and Donut charts.
https://mahozad.ir/android-pie-chart
Apache License 2.0
46 stars 5 forks source link

Add resource version of functions for setting attributes #34

Open mahozad opened 3 years ago

mahozad commented 3 years ago

In addition to a direct method for updating a property (like chart.setColor(color: Int)), provide a resource version of the method that takes a resource and resolves the value automatically (like chart.setColor(R.color.myColor)) for each property.

This is something practiced in Android Material components. See this for an example.

Also, add separate properties to modify a dimension in sp or dp. For example, legendSize, legendSizeSp.