Skip to content
Snippets Groups Projects
Commit 7ac27f20 authored by Daniel Cothran's avatar Daniel Cothran
Browse files

Issue #2943521 by John Cook: Highcharts Title not displaying

parent 2aec1f31
No related branches found
No related tags found
No related merge requests found
...@@ -74,7 +74,7 @@ class HighchartsChartsRender implements ChartsRenderInterface { ...@@ -74,7 +74,7 @@ class HighchartsChartsRender implements ChartsRenderInterface {
// Set chart title. // Set chart title.
$chartTitle = new ChartTitle(); $chartTitle = new ChartTitle();
if ((isset($options['title'])) && (!empty($options['title_position']))) { if (isset($options['title'])) {
$chartTitle->setText($options['title']); $chartTitle->setText($options['title']);
} }
...@@ -84,11 +84,13 @@ class HighchartsChartsRender implements ChartsRenderInterface { ...@@ -84,11 +84,13 @@ class HighchartsChartsRender implements ChartsRenderInterface {
} }
// Set title position. // Set title position.
if ($options['title_position'] == 'in') { if (isset($options['title_position'])) {
$chartTitle->setVerticalAlign('middle'); if ($options['title_position'] == 'in') {
} $chartTitle->setVerticalAlign('middle');
else { }
$chartTitle->setVerticalAlign('top'); else {
$chartTitle->setVerticalAlign('top');
}
} }
$chartXaxis = new Xaxis(); $chartXaxis = new Xaxis();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment