-
Notifications
You must be signed in to change notification settings - Fork 74
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
Vertical Lines are not aligned properly across levels when Highcharts starts sampling #219
Comments
Thank you for reaching out to us! We need to investigate this more deeply as the newest version works a bit differently than the 10.3.3 version you used in the demo. It's hard to give an exact ETA, but we will do our best to provide a relevant solution as soon as possible. @KacperMadej, can you please take priority for this task? |
The grid is off because when the labels don't have enough space they enter a more dense placement mode that centers the labels on the ticks instead of placing them in between ticks. The in between placement is the starting point for the grouped categories plugin. The skipping can be prevented by setting Please let me know if you have any more questions and if the issues could be closed in case the problems is resolved. |
Hi @KacperMadej thanks for the reply. While now the vertical lines are places properly but all labels are rendered which makes them unreadable in less widths. Is there a way to fix this properly i.e. sampling happens and vertical lines are aligned properly? Additionally, do we have any way to pass a callback or listen to event when Highcharts triggers sampling? |
Right, so in short, sampling for text but draw all lines. This feature is not implemented - we could create a feature request about this for the plugin. The sampling could be done using label formatter and returning empty string for every text label you want to hide. Additional question: |
Hi @KacperMadej, logged a feature request - #220.
Yes, this does not handle all cases and categories of other levels cannot be controlled using this. |
Reproducer - https://jsfiddle.net/u694sd0z/
When there is sampling in original ticks due to large no. of x-values i.e. not all ticks are visible for each category then vertical lines across levels are not aligned properly, can you please fix the issue or help us in understanding how it can be fixed?
Possibly it is related to considering only the current active ticks (
tick.isActive
) for figuring out position for a category and not all ticks (group.leaves) ?grouped_categories/grouped-categories.js
Lines 594 to 595 in c606806
The text was updated successfully, but these errors were encountered: