peopledoc / django-chartjs

Django Class Based Views to generate Ajax charts js parameters.
Other
407 stars 112 forks source link

Doughnut chart is uniformly grey #49

Closed frague59 closed 4 years ago

frague59 commented 4 years ago

Hi,

I'm implementing a doughnut chart, all labels and areas appears grey : the default colors does not applies to the chart.

How can I set colors to both labels and areas ?

Thanks !

frague59 commented 4 years ago

Have to add that I've a single provider, and as the colors are provider-based, only the first color is set. Is there a way to use changing colors for this case ? Thanks !

Natim commented 4 years ago

I guess the new get_dataset_options released in 5a4f1e0ca53f1296677bbd3da2443a650aa1a401 might help you do that.

Natim commented 4 years ago

Thank @edras for it. (https://github.com/peopledoc/django-chartjs/pull/53)