Update chartkick to 4.1.3

This commit is contained in:
Henne Vogelsang 2022-02-15 19:06:26 +01:00
parent e79cfe0f91
commit c967a0b9a4
No known key found for this signature in database
GPG key ID: 97DDB66BDAF8D4D6
4 changed files with 6 additions and 21 deletions

View file

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

View file

@ -1,10 +1,3 @@
:ruby
options = {
legend: 'bottom',
download: true,
messages: { empty: 'No data' }
}
.row
.col-md-12
.text-center
@ -12,4 +5,4 @@
= title
.row
.col-md-12
= line_chart data, options
= line_chart data, legend: 'bottom', download: true, messages: { empty: 'No data' }