diff options
author | Philip Häusler <msquare@notrademark.de> | 2015-07-18 21:32:50 +0200 |
---|---|---|
committer | Philip Häusler <msquare@notrademark.de> | 2015-07-18 21:32:50 +0200 |
commit | d414c455a25f1987e792469f5853d7e0485a2133 (patch) | |
tree | 3b5b18050aaf171115d045c8c32fd671c1cefdb1 | |
parent | 46f0636f2fc796b9010c16d22ddb351a7f4582d5 (diff) |
responsive chart
-rw-r--r-- | includes/pages/admin_arrive.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/includes/pages/admin_arrive.php b/includes/pages/admin_arrive.php index 60e1fe2c..a305af68 100644 --- a/includes/pages/admin_arrive.php +++ b/includes/pages/admin_arrive.php @@ -103,7 +103,7 @@ function admin_arrive() { <script type="text/javascript"> $(function(){ var ctx = $("#daily_arrives").get(0).getContext("2d"); - new Chart(ctx).Bar(' . json_encode(array( + var chart = new Chart(ctx).Bar(' . json_encode(array( 'labels' => array_keys($arrival_count_at_day), 'datasets' => array( array( @@ -117,7 +117,7 @@ function admin_arrive() { 'data' => array_values($arrival_sums) ) ) - )) . '); + )) . ', {"responsive": true}); }); </script>' )); |