简体   繁体   中英

Plotly Heatmap clickData

I have a heatmap made using plotly.graph_objects.Heatmap . I'm now designing a dash app, which should have the heatmap and a separate text box or graph displaying some data associated with a given heatmap cell. I would like the text box/graph to update based on which cell was last clicked by the user.

Can someone tell me how to access the 'clicked cell data' for a given heatmap cell? I think the equivalent for a graph (which I've seen mentioned elsewhere in answers to similar questions) is dcc.Graph.clickData , but I can't see a clickData attribute for go.heatmap .

Thanks! Tim

Yanboe 在这里提供了答案: https ://community.plotly.com/t/heatmap-clickdata/66245?u=timothyk

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM