Skip to content

Commit

Permalink
BUGFIX: move external google visualization dependencies to local
Browse files Browse the repository at this point in the history
  • Loading branch information
Uncle Cheese committed Dec 3, 2013
1 parent 9f0128c commit e857c49
Show file tree
Hide file tree
Showing 2 changed files with 1,298 additions and 5 deletions.
9 changes: 4 additions & 5 deletions code/DashboardChart.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ class DashboardChart extends ViewableData {
public $FontSize = 10;




/**
* @var string The position of the text on the chart
Expand Down Expand Up @@ -84,7 +84,7 @@ public static function create($title = null, $x_label = null, $y_label = null, $
* @param string The title of the chart
* @param string The label of the X axis
* @param string The label for the Y axis
* @param array The chart data, in x/y pairs
* @param array The chart data, in x/y pairs
*/
public function __construct($title = null, $x_label = null, $y_label = null, $chartData = array ()) {
if(!is_array($chartData)) {
Expand Down Expand Up @@ -162,11 +162,10 @@ public function setData($data) {
* @return SSViewer
*/
public function forTemplate() {
Requirements::javascript("https://www.google.com/jsapi");
Requirements::javascript("https://www.google.com/uds/api/visualization/1.0/31f9974bf1146091ae320c1219fdf695/format+en,default,corechart.I.js");
Requirements::javascript("dashboard/javascript/thirdparty/google_jsapi_visualization.js");
Requirements::javascript("dashboard/javascript/dashboard-chart.js");
return $this->renderWith('DashboardChart');
}


}
Loading

0 comments on commit e857c49

Please sign in to comment.