mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
Update chartkick to 4.1.3
This commit is contained in:
parent
e79cfe0f91
commit
c967a0b9a4
4 changed files with 6 additions and 21 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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' }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue