summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorroot2013-01-09 06:37:04 (GMT)
committer root2013-01-09 06:37:04 (GMT)
commite7ce04d77291e7e44f1470406a00fea1b1943095 (patch)
tree7b593c3875a337a5279813960ec1a91268e8b739
parentf60ba8d9be76676355974ad0d146661d19ad6e58 (diff)
Coding standered fixed.
-rw-r--r--includes/google_data_visualization.views.inc26
1 files changed, 13 insertions, 13 deletions
diff --git a/includes/google_data_visualization.views.inc b/includes/google_data_visualization.views.inc
index 0b4aa3f..7e66b17 100644
--- a/includes/google_data_visualization.views.inc
+++ b/includes/google_data_visualization.views.inc
@@ -347,10 +347,10 @@ function template_preprocess_google_data_visualization_view(&$variables) {
switch($val) {
case 'ScatterChart':
- $variables['graph_data'][$val] = 'var ' . $view->name . '_' . $view->current_display . '_' . $val . "= google . visualization . arrayToDataTable(" . $data_var_scatter . ");";
- $variables['graph_header'][$val] = 'var ' . $view->name . '_' . $view->current_display . '_' . $val . ' = new google . visualization . DataTable();';
- $variables['graph_id'][$val] = $view->name . '_' . $view->current_display . '_' . $val;
- $variables['graph_options'][$val] = 'var ' . $view->name . '_' . $view->current_display . '_' . $val . '_options = {
+ $variables['graph_data'][$val] = 'var ' . $view->name . '_' . $view->current_display . '_' . $val . "= google . visualization . arrayToDataTable(" . $data_var_scatter . ");";
+ $variables['graph_header'][$val] = 'var ' . $view->name . '_' . $view->current_display . '_' . $val . ' = new google . visualization . DataTable();';
+ $variables['graph_id'][$val] = $view->name . '_' . $view->current_display . '_' . $val;
+ $variables['graph_options'][$val] = 'var ' . $view->name . '_' . $view->current_display . '_' . $val . '_options = {
title: "' . $options["graph_title"] . '",
width: ' . $options["graph_width"] . ' ,
height:' . $options["graph_height"] . ' ,
@@ -362,14 +362,14 @@ function template_preprocess_google_data_visualization_view(&$variables) {
fontName: "' . $options["fontfamily"] . '",
titleTextStyle: {color: "#FF0000"}
};';
- $variables['graph_chart'][$val] = 'var chart = new google . visualization . ' . $val . '(document . getElementById("' . $view->name . '_' . $view->current_display . '_' . $val . '"));
+ $variables['graph_chart'][$val] = 'var chart = new google . visualization . ' . $val . '(document . getElementById("' . $view->name . '_' . $view->current_display . '_' . $val . '"));
chart . draw(' . $view->name . '_' . $view->current_display . '_' . $val . ',' . $view->name . '_' . $view->current_display . '_' . $val . '_options);';
- break;
- default:
- $variables['graph_data'][$val] = 'var ' . $view->name . '_' . $view->current_display . '_' . $val . "= google . visualization . arrayToDataTable(" . $data_var . ");";
- $variables['graph_header'][$val] = 'var ' . $view->name . '_' . $view->current_display . '_' . $val . ' = new google . visualization . DataTable();';
- $variables['graph_id'][$val] = $view->name . '_' . $view->current_display . '_' . $val;
- $variables['graph_options'][$val] = 'var ' . $view->name . '_' . $view->current_display . '_' . $val . '_options = {
+ break;
+ default:
+ $variables['graph_data'][$val] = 'var ' . $view->name . '_' . $view->current_display . '_' . $val . "= google . visualization . arrayToDataTable(" . $data_var . ");";
+ $variables['graph_header'][$val] = 'var ' . $view->name . '_' . $view->current_display . '_' . $val . ' = new google . visualization . DataTable();';
+ $variables['graph_id'][$val] = $view->name . '_' . $view->current_display . '_' . $val;
+ $variables['graph_options'][$val] = 'var ' . $view->name . '_' . $view->current_display . '_' . $val . '_options = {
title: "' . $options["graph_title"] . '",
width: ' . $options["graph_width"] . ' ,
height:' . $options["graph_height"] . ' ,
@@ -381,9 +381,9 @@ function template_preprocess_google_data_visualization_view(&$variables) {
fontName: "' . $options["fontfamily"] . '",
titleTextStyle: {color: "#FF0000"}
};';
- $variables['graph_chart'][$val] = 'var chart = new google . visualization . ' . $val . '(document . getElementById("' . $view->name . '_' . $view->current_display . '_' . $val . '"));
+ $variables['graph_chart'][$val] = 'var chart = new google . visualization . ' . $val . '(document . getElementById("' . $view->name . '_' . $view->current_display . '_' . $val . '"));
chart . draw(' . $view->name . '_' . $view->current_display . '_' . $val . ',' . $view->name . '_' . $view->current_display . '_' . $val . '_options);';
- break;
+ break;
}
}