Skip to content

plotlyClick event doesnt work #260

Open
@rajyadav-bh

Description

@rajyadav-bh

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions