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
Tags 3.0.0
No related merge requests found
......@@ -74,7 +74,7 @@ class HighchartsChartsRender implements ChartsRenderInterface {
// Set chart title.
$chartTitle = new ChartTitle();
if ((isset($options['title'])) && (!empty($options['title_position']))) {
if (isset($options['title'])) {
$chartTitle->setText($options['title']);
}
......@@ -84,11 +84,13 @@ class HighchartsChartsRender implements ChartsRenderInterface {
}
// Set title position.
if ($options['title_position'] == 'in') {
$chartTitle->setVerticalAlign('middle');
}
else {
$chartTitle->setVerticalAlign('top');
if (isset($options['title_position'])) {
if ($options['title_position'] == 'in') {
$chartTitle->setVerticalAlign('middle');
}
else {
$chartTitle->setVerticalAlign('top');
}
}
$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