Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

plotOptions for specified series are not applied when using setOptions #20716

Open
goransle opened this issue Feb 26, 2024 · 2 comments
Open

Comments

@goransle
Copy link
Member

goransle commented Feb 26, 2024

Expected behaviour

The series should be rendered the same way as when the option is provided in the chart function.

Actual behaviour

The chart is rendered using values from plotOptions.series and not plotOptions.mapline

Live demo with steps to reproduce

https://jsfiddle.net/goransle/k8ze4hq9/

Product version

HC 10+

Affected browser(s)

Chrome, Firefox, Safari

@hubertkozik
Copy link
Member

The same issue is visible for e.g. pie series: https://jsfiddle.net/BlackLabel/trxje5fm/

@hubertkozik hubertkozik changed the title plotOptions.mapline not applied when using setOptions plotOptions for specified series are not applied when using setOptions Feb 27, 2024
@KacperMadej
Copy link

KacperMadej commented Feb 27, 2024

Internal note:
In short: Highcharts.setOptions({ plotOptions: { series: ... }}) is not implemented/supported.

Looks like Series's setOptions should have typeOptions, plotOptions.series order flipped in

typeOptions,
plotOptions.series,
but there is no difference between defaultOptions.plotOptions.series and userOptions.plotOptions.series (only plotOptions.series is used in the merge) so those 2 should be created instead of the existing one and merged in order defaultOptions.plotOptions.series, defaultOptions.plotOptions[series.type], userOptions.plotOptions.series (and the rest as is).

P.S. watch out for Stock and exporting

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants