Merge pull request #2971 from AndrewKvalheim/chart-colors

Restore `colors` parameter of donut chart partial
This commit is contained in:
Henne Vogelsang 2022-03-29 15:14:09 +02:00 committed by GitHub
commit c3dfd7645a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,8 +1,9 @@
:ruby
combined_data ||= {}
data ||= chart_values(combined_data)
colors ||= chart_colors(combined_data)
.text-center
%h4
= title
= pie_chart data, donut: true, legend: 'bottom', download: true, messages: { empty: 'No data' }, colors: chart_colors(combined_data)
= pie_chart data, donut: true, legend: 'bottom', download: true, messages: { empty: 'No data' }, colors: colors