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
Zoom with flags #17128
Comments
Thank you for reporting that bug. As a workaround, you might set the xAxis Internal note with some observation
|
FYI..i have tried the work around and while it does solve the issue (in my case a 2nd scatterplot series), it introduces another issue. When zoomed in, i see weekend dates added to the chart (for which i did not provide data), causing gaps when zoomed in. |
Hello Highcharts Team, Even we're struggling with this bug for quite some time. Thank You, |
yeah..would definitely like a fix for this |
I also encountered this problem. The zoom failed after flag data was added to the line graph. When will this bug be fixed? |
Simplified demo with controlled result (click the buttons and watch the console): https://jsfiddle.net/highcharts/4bLo7djx/ |
Internal note So far debugging has led me here: highcharts/ts/Core/Axis/OrdinalAxis.ts Lines 1412 to 1424 in 07b0713
In the controlled jsFiddle - when the second series type is I don't yet understand why these series types work differently. The code comes from #15987, maybe @karolkolodziej or @raf18seb knows? |
@karolkolodziej I propose this solution, by adding a condition that the // When more series assign to axis, find the smallest one, #15987.
if (axis.series.length > 1) {
axis.series.forEach(function (series): void {
if (
series.points &&
defined(series.points[0]) &&
defined(series.points[0].plotX) &&
series.points[0].plotX < firstPointX &&
// #17128
series.points[0].plotX >= pick(axis.min, -Infinity)
) {
firstPointX = series.points[0].plotX;
}
});
} Agreed? |
Expected behaviour
The zoom function should not change time scope if zoom is made after a flag on a series.
Actual behaviour
If I have a time series and set out a flag attached to it. The zoom works before the flag but not after the flag in time.
Live demo with steps to reproduce
https://jsfiddle.net/rick822/p64obe01/
Seems like data after a flag on a series gets a different behaviour than data before a flag. This makes it impossible to examine values on a lower level with zoom if the dataset is much larger than the demo values in my example are.
Might have someting to do with datagrouping, however datagrouping is needed in my real case.
Product version
Highstock JS v10.0.0 (2022-03-07)
Affected browser(s)
Tested in chrome and safari
The text was updated successfully, but these errors were encountered: