Skip to content

Treemap click event #105

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

Closed
tanvi-cota opened this issue Feb 26, 2020 · 5 comments
Closed

Treemap click event #105

tanvi-cota opened this issue Feb 26, 2020 · 5 comments
Assignees

Comments

@tanvi-cota
Copy link

tanvi-cota commented Feb 26, 2020

I have been trying to use Treemap with angular-plotly. It seems to render fine, but I have difficulty with the click event, in Treemap.

<plotly-plot *ngIf="plotlyGraph?.data && plotlyGraph?.data.length > 0" [useResizeHandler]="true"
    (plotly_click)="onSelect($event)" [data]="plotlyGraph.data"
    [layout]="plotlyGraph.layout" [config]="plotlyGraph.config"></plotly-plot>

I use the above generic html to create different visuals. I am facing issue when trying to handle the click/select event on Treemap.
I read documentation in plotly.js and they have some event for treemap plotly_treemapclick (plotly/plotly.js#4454). But this event doesn't seem to be available here.

@andrefarzat
Copy link
Collaborator

Hello @tanvi-cota , looks like these clicks (plotly_sunburstclick and plotly_treemapclick) are new on the plotly.js.
Do you think we can simply add these events as properties on plotly-plot ? like: (treemapclick) and (sunburstclick)

@andrefarzat andrefarzat self-assigned this Feb 26, 2020
@tanvi-cota
Copy link
Author

I think we should be able to. I was going through other reported issues, and we had something similar to this request. And there we just used it as you suggested

@tanvi-cota
Copy link
Author

@andrefarzat any idea when can this feature/update be available?

@andrefarzat
Copy link
Collaborator

@tanvi-cota adding events are really easy. Just published the 1.7.0 version. Please, update and check it out 😸

@tanvi-cota
Copy link
Author

@andrefarzat It seems I cant take the latest and work on it, due to the error - #104

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

2 participants