Skip to content
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

How to make polar plot and add click event to get selected points? #169

Open
EWChina999 opened this issue May 9, 2022 · 2 comments
Open
Labels
help wanted Extra attention is needed

Comments

@EWChina999
Copy link

I did not find a way to make polar plot? Could you make one example
image

@EWChina999
Copy link
Author

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>

@sean-mcl sean-mcl added the help wanted Extra attention is needed label Oct 18, 2022
@jacekpapiniak
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants