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

Documentation: Prefer (chartInstance) on init #384

Open
wjaspers opened this issue May 29, 2024 · 1 comment
Open

Documentation: Prefer (chartInstance) on init #384

wjaspers opened this issue May 29, 2024 · 1 comment
Labels

Comments

@wjaspers
Copy link

wjaspers commented May 29, 2024

When using the [chartCallback] to store a reference to the newly created chart, it is called again during export. This can be confusing if your chart is updated dynamically, as the original chart reference will be reassigned.

@karolkolodziej
Copy link
Contributor

Hi @wjaspers! Thank you for the feedback.
The chart callback is triggered on export regardless using highcharts-anuglar- see demo.

This isn't properly documented but the best way to get the chart instance reference is by the Output:

@Output() chartInstance = new EventEmitter<Highcharts.Chart | null>(); // #26

Let's treat this as a documentation improvement task.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants