-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Updating cursor though plotOptions does not update each series #17878
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
Comments
Is there any indication when this bug is going to be resolved? It's quite an annoying bug in our application as it's unclear to customers when they can click through to zoom in. |
Hey @Noppey apologies for not having solved this yet! I will get someone with more experience to look into it, for the time being there is a (somewhat laborious) workaround you can use, at least going by the fiddle you posted. It involves simply recreating the series which does not accurately receives the updated cursor with the same desired settings as the old, but after updating Internal note: |
I understand the workaround, but I don't like the additional complexity in our usecase (not the jsfiddle). |
Thank you for your patience @Noppey ! Until the next maintenance is released, there's a more modular drop-in workaround you can use, instead of rewriting your logic. Then after release this can be removed (or not): // Drop-in workaround for #17878
Highcharts.addEvent(Highcharts.seriesTypes.column, 'afterUpdate', function(options) {
if (this.options.cursor) {
this.trackerGroups.forEach(key => {
if (this[key]) {
this[key].attr({
'style': `cursor: ${this.options.cursor}`
});
}
});
}
}); View it live on jsFiddle. |
What would be the appropriate workaround for highstock? It doesn't recognize the property seriesTypes here. |
From what I can see (demo), it works exactly the same in stock. |
My typescript compiler complained that seriesTypes was not a property. But the javascript works as you've mentioned:
|
The |
Expected behaviour
When updating the series
cursor
through theplotOptions
each series should have that property as it is withcolor
.Actual behaviour
When updating the series
cursor
through theplotOptions
only the first series has updated cursor.This is not the case when you have column and line but is when having column and scatter.
Live demo with steps to reproduce
https://jsfiddle.net/BlackLabel/qofx0uhg/
Product version
Highcharts JS v10.2.1 (2022-08-29)
Affected browser(s)
All
The text was updated successfully, but these errors were encountered: