Merge pull request #2653 from differentreality/chart_legend

Fix chart legend position
This commit is contained in:
Henne Vogelsang 2021-03-06 19:36:34 +01:00 committed by GitHub
commit 977748a039
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -7,4 +7,4 @@
.panel-body
- question_replies = survey_question.survey_replies
- if question_replies.any?
= pie_chart question_replies.group(:text).count, library: { legend: 'bottom', plotOptions: { pie: { dataLabels: { enabled: false }, showInLegend: true } } }
= pie_chart question_replies.group(:text).count, library: { legend: { position: 'bottom' }, plotOptions: { pie: { dataLabels: { enabled: false }, showInLegend: true } } }