Impossible to override axes using Highcharts

Created on 22 April 2019, about 6 years ago
Updated 18 April 2025, 14 days ago

First - a compliment for a great module!

When trying to override chart properties by using the provided Highcharts starterkit, all works well, until you want to override properties for the x and y axes.
For example, this statement in the class ChartsOverridesHighcharts, function chartOverrides works.
$options['plotOptions']['series']['dataLabels']['enabled'] = true;

If you try to override a property in one of the chart axes, the chart will not render at all.
$options['yAxis']['tickInterval'] = 0; // Remove the Y axis line completely.

The reason for this is the naming of the functions, e.g. "setAxisY", which conflicts with the options format expected by Highcharts - "yAxis". Further, yAxis is array keyed by the axis number and xAxis is an object (single axis).

πŸ› Bug report
Status

Fixed

Component

Highcharts integration

Created by

πŸ‡¦πŸ‡ΉAustria jordik

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024