From 412be8e1884eab7d543c26fafcc93fca3eca8cd1 Mon Sep 17 00:00:00 2001 From: msquare Date: Sun, 9 Dec 2018 13:07:19 +0100 Subject: upgrade chart.js lib and fix bargraph. fixes #511 --- includes/helper/graph_helper.php | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'includes') diff --git a/includes/helper/graph_helper.php b/includes/helper/graph_helper.php index f49ab635..7c6e6114 100644 --- a/includes/helper/graph_helper.php +++ b/includes/helper/graph_helper.php @@ -25,7 +25,7 @@ function bargraph($dom_id, $key, $row_names, $colors, $data) } $datasets[] = [ 'label' => $name, - 'fillColor' => $colors[$row_key], + 'backgroundColor' => $colors[$row_key], 'data' => $values ]; } @@ -34,9 +34,12 @@ function bargraph($dom_id, $key, $row_names, $colors, $data) '; -- cgit v1.2.3-54-g00ecf