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

Add a function to get the selected points in Blazor #174

Open EWChina999 opened 2 years ago

EWChina999 commented 2 years ago

With jQuery, we can get the selected points by a click on the line charts . Then we can generate another charts with the data point the user clicks on. Could you add this feature in Blazor? I googled the whole internet , found one website of ECharts has one feature . http://blazor-echarts.5izhy.cn/line/index . I checked https://github.com/LayTec-AG/Plotly.Blazor/pull/147 and also demo https://plotly-blazor.azurewebsites.net/ , I did not find the function of getting the selected points . Could you make a demo ?

benberlin7 commented 1 year ago

Have not tested it yet but there is a property called "Selected" in the Chart, which IMHO gives back selected Traces.