You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Returning "true" or "undefined" when calling "hasGroupedData" on a series, depending if the data is currently beeing grouped.
Actual behaviour
When two or more series are displayed, it always returns "true" once it returned "true" at least once.
When there is only one series inside the graph it works as expected - returns "true" when the data is beeing grouped and "undefined" when zoomed in far enough where grouping is not applied. Also returns back to "true" when you reset the zoom and back to "undefined" when zoomed in again.
The text was updated successfully, but these errors were encountered:
ernstfabian
changed the title
"hasGroupedData" when multiple series does not return the right status
"hasGroupedData" with multiple series does not return the right status
Mar 31, 2022
The getGroupPixelWidth in the applyGrouping method returns a value greater than zero when it shouldn't.
Then based on that knowledge the grouping is being applied.
Before the getGroupPixelWidth the groupPixelWidth is reset but only for the current series.
Because of that getGroupPixelWidth falsely take the groupPixelWidth from the previously calculated series.
Where previously means previous extremes and different arrangement of points unrelated to the current state of chart and series.
Expected behaviour
Returning "true" or "undefined" when calling "hasGroupedData" on a series, depending if the data is currently beeing grouped.
Actual behaviour
When two or more series are displayed, it always returns "true" once it returned "true" at least once.
When there is only one series inside the graph it works as expected - returns "true" when the data is beeing grouped and "undefined" when zoomed in far enough where grouping is not applied. Also returns back to "true" when you reset the zoom and back to "undefined" when zoomed in again.
Live demo with steps to reproduce
Stackoverflow
https://jsfiddle.net/Itsearnest/ho0a4zw9/
Product version
Highstock v10.0.0
Affected browser(s)
Tested on Firefox, Chrome and Edge
The text was updated successfully, but these errors were encountered: