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
Samples: Sync axes and tooltips #17875
base: master
Are you sure you want to change the base?
Conversation
File size comparisonNo differences found |
Visual test results - Differences foundFound 1 diffing sample(s). Please review the differences. Samples changed
|
Hello, Thanks for addressing the changes. In our use-case, all the synced charts have equal plot-area size - See fiddle. I have 3 queries on which please give your thoughts:
Till how far the data ranges in charts can be?
|
const chart = Highcharts.chart(…);
Highcharts.addEvent(chart.tooltip, ‘refresh’, myHandler); Optionally, you can set a custom option to identify the charts that are part of the tooltip sync, and check that in the common handler.
|
Hello, Thanks for the first 4 points - Many queries are solved.
Yes, that would be desirable. If granularity is not achieved i.e. yAxis doesn't modify in x-axis range
If I understand correctly; please correct me if not: After initial synchronization, zoom, reset-zoom, etc (all which is done in the demo now), invoke a function which does -
If you can share a demo which achieves granularity, that'll be helpful. |
Hi @rdp1414 , sorry for the late reply! In the latest commit, I implemented a |
Webpack monitoringLGTM 👍 |
A continuation of the topic of the blog post How to synchronize the axes of multiple charts.
The following adjustments are made:
tickPositions
are not hard set, instead allowed to be calculated based on the chart size and the synchronized min and max.See the preview here.