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

Implement default color sets for slices #39

Open mahozad opened 3 years ago

mahozad commented 3 years ago

See #26.

Add some default color sets to use as slice colors. Each color set must be available in two variants: single color for the slice or gradient for the slice.

Can we somehow use themes and styles for this? We can have some default styles in our library that users can use.

<resource>
  <style name="ColorfulStyle">
    <item name="gap">4dp</item>
    ...
  </style>
</resource>
<ir.mahoza.android.piechart
  style="@style/ColorfulStyle"
... />

Possible options could be: