You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
How to add click event to get the selected points from scatter charts.
In ASP.net form with HighCharts, I use Javascript to get the selected points . In Blazor with Plotly, how to achieve this function?
<script type="text/javascript"> function chartselection(chartindex) { var chart = $('#container' + chartindex).highcharts(); var selectedPoints = chart.getSelectedPoints(); var selectedPointsStr = ""; selectedPoints.push(this); // now it's got all the points $.each(selectedPoints, function (i, value) { try { selectedPointsStr += value.category + "," + value.series.name + ";"; } catch (err) { } }); selectedPointsStr = selectedPointsStr.replace('undefined,', ''); if (selectedPointsStr.length > 0) { selectedPointsStr = selectedPointsStr.substring(0, selectedPointsStr.length - 1); } var xSelection = document.getElementById('<%= HiddenFieldChartSelection.ClientID%>'); xSelection.value = selectedPointsStr; if (selectedPointsStr.length > 0) { __doPostBack('DrillSelectedPoints', chartindex + "$" + selectedPointsStr); } } </script>
I think that for this we need to add support for selection event first.
I have created PR that adds some of the examples for the polar charts from plotly.js documentation.
I will have a look on the select event and see what I can do about that.
I did not find a way to make polar plot? Could you make one example
The text was updated successfully, but these errors were encountered: