plotly / plotly/angular-plotly.js
plotlyClick event doesnt work
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 242
- Forks
- 81
- Avg merge
- 8h 48m
- Merged PRs (30d)
- 18
Description
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
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the Angular template and angular.ts handler shown in the issue, then check the angular-plotly.js event-binding documentation and examples for plotlyClick. Verify whether the handler receives the click event for the horizontal bar chart and whether that event contains the clicked x-axis label.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- angular, typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100