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

Programatically open tooltip #506

Closed
jfredsilva opened this issue Nov 12, 2024 · 5 comments
Closed

Programatically open tooltip #506

jfredsilva opened this issue Nov 12, 2024 · 5 comments
Labels

Comments

@jfredsilva
Copy link

Hi,

I would like to programatically open a specific point on the chart.
Is there a way to do it?

Thanks

@jfredsilva
Copy link
Author

Tried calling the method "evaluateJavaScript" with the string ""aaGlobalChart.charts[0].tooltip.refresh(chart.series[0].points[0]);" "like shown in this example.

But it's returning the error "WKJavaScriptExceptionMessage=TypeError: undefined is not an object (evaluating 'aaGlobalChart.charts[0]')"

@AAChartModel
Copy link
Owner

Try this again:

aaGlobalChart.tooltip.refresh(chart.series[0].points[0]);

@jfredsilva
Copy link
Author

Try this again:

aaGlobalChart.tooltip.refresh(chart.series[0].points[0]);

We're almost there, now the error is "WKJavaScriptExceptionMessage=ReferenceError: Can't find variable: chart"

@AAChartModel
Copy link
Owner

Try this again:

aaGlobalChart.tooltip.refresh(aaGlobalChart.series[0].points[0]);

@jfredsilva
Copy link
Author

jfredsilva commented Nov 20, 2024

I was able to open the tooltip with
"aaGlobalChart.series[0].points[0].onMouseOver();"

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