summaryrefslogtreecommitdiff
path: root/includes/helper/graph_helper.php
diff options
context:
space:
mode:
authormsquare <msquare@notrademark.de>2018-08-12 12:42:58 +0200
committermsquare <msquare@notrademark.de>2018-08-12 12:42:58 +0200
commitdf30f7d5d89d8de3f61905d8e25eb361a06faa7f (patch)
treec9c07c9133b266224f1e91e7aabc4c40bf27f67d /includes/helper/graph_helper.php
parentc55ae7c3190e48180371bab8f4d7ab4c5726ff13 (diff)
parentb409d2986fcca5bcafdad4b3b33094c12d8530a6 (diff)
merge pr #427: Use npm to handle frontend dependencies
Diffstat (limited to 'includes/helper/graph_helper.php')
-rw-r--r--includes/helper/graph_helper.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/helper/graph_helper.php b/includes/helper/graph_helper.php
index 12c7df6c..f49ab635 100644
--- a/includes/helper/graph_helper.php
+++ b/includes/helper/graph_helper.php
@@ -33,7 +33,7 @@ function bargraph($dom_id, $key, $row_names, $colors, $data)
return '<canvas id="' . $dom_id . '" style="width: 100%; height: 300px;"></canvas>
<script type="text/javascript">
$(function(){
- var ctx = $("#' . $dom_id . '").get(0).getContext("2d");
+ var ctx = $(\'#' . $dom_id . '\').get(0).getContext(\'2d\');
var chart = new Chart(ctx).Bar(' . json_encode([
'labels' => $labels,
'datasets' => $datasets