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).
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | Highcharts_override_axes-3049960-1.patch | 1.67 KB | jordik |
Comments
Comment #2
jordik commentedPatch provided - please test.
Comment #3
jordik commentedComment #4
jordik commentedComment #6
andileco commentedI implemented a patch to provide some documentation, but ultimately the module will need a patch similar to yours. I tested it, but it wasn't quite working. Your code,
$options['yAxis']['tickInterval'] = 0;works with the patch, but this (below) doesn't work with your current patch:Comment #7
bluegeek9 commented8.x-3.x is bug fixes only. We encourage everyone to migrate to 5.1.x.