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

Highstock navigator type arearange doesn't work #17424

Closed
kamil-musialowski opened this issue Jun 21, 2022 · 5 comments
Closed

Highstock navigator type arearange doesn't work #17424

kamil-musialowski opened this issue Jun 21, 2022 · 5 comments

Comments

@kamil-musialowski
Copy link
Contributor

Expected behaviour

navigator.series.type set to arearange should plot an arearange in navigator

Actual behaviour

When set to arearange navigator stays empty (except for Firefox, where it's plotted as a line)

Live demo with steps to reproduce

https://jsfiddle.net/BlackLabel/r8mjx4h1/

Product version

Highstock JS v10.1.0 (current)

Affected browser(s)

Chrome, Opera, Safari - arearange doesn't show up
Firefox(Windows 10) - shows as a line

@karolkolodziej
Copy link
Contributor

Please note that the arearange series requires data in a different format than line or ohlc.
If you declare a separate dataset for the navigator's arearange series, everything works as expected.

Demo: https://jsfiddle.net/BlackLabel/n6tbmx3L/

This approach works in Safari, Chrome, and FF.

@karolkolodziej karolkolodziej closed this as not planned Won't fix, can't repro, duplicate, stale Jun 22, 2022
Development-Flow automation moved this from To do to Done Jun 22, 2022
@y-ghx
Copy link

y-ghx commented Jun 22, 2022

Sorry to comment a closed issue but arearange series does not plot in navigator if series contains too many points (depending on browser and exploitation system apparently).

Demo: https://jsfiddle.net/guehenneux/Le34x7h1/

In my case under Ubuntu 18.04:
Firefox: failed if the serie contains more than 473 points.
Chrome: failed if the serie contains more than 562 points.

And under Windows 10:
Firefox, Chrome, Edge, Brave failed if the serie contains more than 401 points.

Development-Flow automation moved this from Done to To do Jun 22, 2022
@karolkolodziej
Copy link
Contributor

Indeed, the grouped data in the navigator is not properly displayed.

As a workaround, you can simply disable the dataGrouping in the navigator's series- demo.

@pawelfus
Copy link
Contributor

This is not a bug: by default navigator.series.dataGrouping.approximation is set to average. When you change series to arearange, the approximation should also be changed (e.g. to range or averages).

Demo: https://jsfiddle.net/BlackLabel/sgxkwdhc/

@raf18seb
Copy link
Contributor

Due to Paweł's comment, closing as not a bug.

Development-Flow automation moved this from To do to Done Jul 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

No branches or pull requests

6 participants