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

Issue #2944101 by John Cook: Notices logged when viewing charts

parent 7a5be6c6
No related branches found
No related tags found
No related merge requests found
......@@ -150,20 +150,23 @@ class HighchartsChartsRender implements ChartsRenderInterface {
$plotOptionsSeries = new PlotOptionsSeries();
$plotOptionsSeriesDataLabels = new PlotOptionsSeriesDataLabels();
// Set plot options if stacked chart.
if(!empty($options['grouping'])) {
if (!empty($options['grouping'])) {
$plotOptions->setPlotSeries($plotOptionsStacking);
$plotOptionsStacking->setDataLabels($plotOptionsSeriesDataLabels);
$plotOptionsSeriesDataLabels->setEnabled($options['data_labels']);
}
else {
$plotOptions->setPlotSeries($plotOptionsSeries);
$plotOptionsSeries->setDataLabels($plotOptionsSeriesDataLabels);
}
if (isset($options['data_labels'])) {
$plotOptionsSeriesDataLabels->setEnabled($options['data_labels']);
}
// Set Tooltip.
$chartTooltip = new Tooltip();
$chartTooltip->setEnabled($options['tooltips']);
if (isset($options['tooltips'])) {
$chartTooltip->setEnabled($options['tooltips']);
}
$chartCredits = new ChartCredits();
// Set charts legend.
......
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