Merge pull request #2971 from AndrewKvalheim/chart-colors
Restore `colors` parameter of donut chart partial
This commit is contained in:
commit
c3dfd7645a
1 changed files with 2 additions and 1 deletions
|
|
@ -1,8 +1,9 @@
|
||||||
:ruby
|
:ruby
|
||||||
combined_data ||= {}
|
combined_data ||= {}
|
||||||
data ||= chart_values(combined_data)
|
data ||= chart_values(combined_data)
|
||||||
|
colors ||= chart_colors(combined_data)
|
||||||
|
|
||||||
.text-center
|
.text-center
|
||||||
%h4
|
%h4
|
||||||
= title
|
= 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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue