diff --git a/app/views/application/_donut_chart.haml b/app/views/application/_donut_chart.haml index 8a65e390..3c91cdc4 100644 --- a/app/views/application/_donut_chart.haml +++ b/app/views/application/_donut_chart.haml @@ -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