From 176faf857ff4f86ba44007a43296b1b56e662579 Mon Sep 17 00:00:00 2001 From: Nathan Haug <nate@lullabot.com> Date: Wed, 19 Mar 2014 14:05:08 -0700 Subject: [PATCH] Fixing issue with non-rotated labels going missing. --- modules/charts_google/charts_google.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/charts_google/charts_google.inc b/modules/charts_google/charts_google.inc index 36a83cc..5359896 100644 --- a/modules/charts_google/charts_google.inc +++ b/modules/charts_google/charts_google.inc @@ -121,7 +121,7 @@ function _charts_google_populate_chart_axes($chart, $chart_definition) { $axis['textStyle']['bold'] = $chart[$key]['#labels_font_weight'] === 'bold' ? TRUE : FALSE; $axis['textStyle']['italic'] = $chart[$key]['#labels_font_style'] === 'italic' ? TRUE : FALSE; $axis['textStyle']['fontSize'] = $chart[$key]['#labels_font_size']; - $axis['slantedText'] = isset($chart[$key]['#labels_rotation']) ? TRUE : NULL; + $axis['slantedText'] = !empty($chart[$key]['#labels_rotation']) ? TRUE : NULL; $axis['slantedTextAngle'] = $chart[$key]['#labels_rotation']; $axis['gridlines']['color'] = $chart[$key]['#grid_line_color']; $axis['baselineColor'] = $chart[$key]['#base_line_color']; -- GitLab