You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
rajyadav-bh
changed the title
plotClick event doesnt work
plotlyClick event doesnt work
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,
![image](https://private-user-images.githubusercontent.com/167775266/337996620-3c83f94a-6560-4611-b298-5cc6509b1185.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkxODkyNDgsIm5iZiI6MTczOTE4ODk0OCwicGF0aCI6Ii8xNjc3NzUyNjYvMzM3OTk2NjIwLTNjODNmOTRhLTY1NjAtNDYxMS1iMjk4LTVjYzY1MDliMTE4NS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjEwJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxMFQxMjAyMjhaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1iOGQ1NDYwZTJiMzE5NmQ3YTM3OWU1MjdhNjI5NTlmMThiODk1MDMxN2YwZTVkMDRlZGJkZjYwMTRjZjI1MGEyJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.sbu9Sv5ZOuGDvjVyXzY1sD8AUHUIVJQ6l4Hn6vMOwzs)
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
The text was updated successfully, but these errors were encountered: