Fix chart legend position

This commit is contained in:
Stella Rouzi 2020-03-29 21:21:22 +03:00 committed by Henne Vogelsang
parent 0646e41a82
commit c4da5cc31d
No known key found for this signature in database
GPG key ID: 9D6164C2955FADE0

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 } } }