Plotly.js create a point on click
问题 Having an issue. Using plotly.js to draw a scatter chart, I need to be able to click on the chart and retrieve the values of the point so that I can draw a new point at the clicked location. The plotly_click event only fires on already created points. Any ideas how I can get a click event to get the current values from the location so I can plot the new point? So far I'm only getting this: var trace1 = { x: [1, 2, 3, 4], y: [10, 15, 13, 17], mode: 'markers', type: 'scatter' }; var trace2 = {