LayTec-AG / Plotly.Blazor

This library packages the well-known charting library plotly.js into a razor component that can be used in a Blazor project.
MIT License
340 stars 48 forks source link

Click event doesn't work for heatmaps. #414

Closed BrockLeeBytes closed 2 months ago

BrockLeeBytes commented 5 months ago

The PointNumber property in EventDataPoint is returned as an array when a heat map cell is clicked on. This causes an json parsing error on the client side and the C# click event never actually activates.

I was able to fix this issue relatively easily by adding the Plotly.Blazor source code to my project and changing PointIndex from an int to an object.

sean-mcl commented 2 months ago

Okay, will probably be a breaking change. Will check it out next week, too.

sean-mcl commented 2 months ago

Integrated in #433