From 412be8e1884eab7d543c26fafcc93fca3eca8cd1 Mon Sep 17 00:00:00 2001 From: msquare Date: Sun, 9 Dec 2018 13:07:19 +0100 Subject: [PATCH] upgrade chart.js lib and fix bargraph. fixes #511 --- includes/helper/graph_helper.php | 11 +++++++---- package.json | 6 +++--- 2 files changed, 10 insertions(+), 7 deletions(-) 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) '; diff --git a/package.json b/package.json index 991f5ea6..5c902a45 100644 --- a/package.json +++ b/package.json @@ -3,8 +3,8 @@ "version": "1.1.0", "main": "index.js", "repository": "https://github.com/engelsystem/engelsystem.git", - "author": "marudor ", - "license": "MIT", + "author": "https://github.com/engelsystem/engelsystem/contributors", + "license": "GPL-2.0-only", "scripts": { "build": "npm run -s build:clean && NODE_ENV=production run-p build:assets build:webpack", "build:clean": "rimraf public/assets", @@ -15,7 +15,7 @@ "dependencies": { "bootstrap": "^3", "eonasdan-bootstrap-datetimepicker": "^4.17.47", - "chart.js": "^1", + "chart.js": "^2", "jquery": "^3.3.1", "jquery-ui": "^1.11.2", "moment": "^2.8.2",