2018-12-19 12:59:52 -08:00
|
|
|
:ruby
|
|
|
|
|
combined_data ||= {}
|
|
|
|
|
data ||= chart_values(combined_data)
|
2022-03-17 18:46:04 -07:00
|
|
|
colors ||= chart_colors(combined_data)
|
2018-12-19 12:59:52 -08:00
|
|
|
|
|
|
|
|
.text-center
|
2022-02-15 19:06:26 +01:00
|
|
|
%h4
|
|
|
|
|
= title
|
2022-03-17 18:46:04 -07:00
|
|
|
= pie_chart data, donut: true, legend: 'bottom', download: true, messages: { empty: 'No data' }, colors: colors
|