From c4da5cc31d3a7d8db824dade79e505eb1f3ef6c5 Mon Sep 17 00:00:00 2001 From: Stella Rouzi Date: Sun, 29 Mar 2020 21:21:22 +0300 Subject: [PATCH] Fix chart legend position --- app/views/admin/surveys/_survey_stats.html.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/admin/surveys/_survey_stats.html.haml b/app/views/admin/surveys/_survey_stats.html.haml index e551a7d1..cacf0b00 100644 --- a/app/views/admin/surveys/_survey_stats.html.haml +++ b/app/views/admin/surveys/_survey_stats.html.haml @@ -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 } } }