1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-31 20:00:37 +02:00

Upgraded chart scripts and added enhanced class so that options may be set.

This commit is contained in:
Cameron
2014-06-22 16:58:18 -07:00
parent 1e4c6eb11a
commit 150b27e1c7
4 changed files with 5677 additions and 15 deletions

View File

@@ -686,7 +686,8 @@ class adminstyle_infopanel
'strokeColor' => "rgba(220,220,220,1)",
'pointColor ' => "rgba(220,220,220,1)",
'pointStrokeColor' => "#fff",
'data' => array(65,59,90,81,56,55,40)
'data' => array(65,59,90,81,56,55,40),
'title' => "Visits"
);
@@ -695,7 +696,8 @@ class adminstyle_infopanel
'strokeColor' => "rgba(151,187,205,1)",
'pointColor ' => "rgba(151,187,205,1)",
'pointStrokeColor' => "#fff",
'data' => array(28,48,40,19,96,27,100)
'data' => array(28,48,40,19,96,27,100),
'title' => "Unique Visits"
);
return $data;
@@ -849,6 +851,10 @@ class adminstyle_infopanel
$cht = e107::getChart();
$cht->setType('line');
$cht->setOptions(array(
'annotateDisplay' => true,
'annotateFontSize' => 8
));
$cht->setData($data,'canvas');
$text = $cht->render('canvas');