Home Forums Chart Support Editable legends Reply To: Editable legends



I have tried the same thing for doubleclick event. But in this case I can not focusout with single click. Can you please suggest solution for this. https://jsfiddle.net/xw3p5k8b/7/

You can attach double-click event to the chart-container as and fire focus-out on single-click as shown in this updated JSFiddle.

My canvas are getting generated dynamically because of which I am not getting the element. In my snippet I am adding a doubleclick event on container itself but I am not getting exact event object and even its not working.
In short I want to attach event on container div itself and I should be able to find out the title of the legend on which I have clicked on.

Binding double-click event on window-load should work fine in this case. Please take a look at this updated JSFiddle.

Vishwas R
Team CanvasJS