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

plotlyClick event doesnt work #260

Open
rajyadav-bh opened this issue Jun 9, 2024 · 0 comments
Open

plotlyClick event doesnt work #260

rajyadav-bh opened this issue Jun 9, 2024 · 0 comments

Comments

@rajyadav-bh
Copy link

rajyadav-bh commented Jun 9, 2024

Below is in my angular.ts file
<plotly-plot [data]="_traces" [config]="_config" [layout]="_layout" (plotlyClick)="onClick($event)" ></plotly-plot>
TS Code :
onClick(event:any){ console.log(event) }

Not sure why the above code doesn't work,
My end goal is to get the clicked x-axis label in a horizontal bar chart, I am trying with different approaches but didn't work, so just putting this simple code as I am not sure if its possible to implement this feature
image

@rajyadav-bh rajyadav-bh changed the title plotClick event doesnt work plotlyClick event doesnt work Jun 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant