PDA

View Full Version : Adding a right-click menu to a legend item in a chart



sarabjeetd
11 Apr 2012, 10:58 AM
Currently, there is no way to completely remove a line series from a chart - The legend gives control on turning "on" or "off" a particular line in a multi-line series chart but I want to completely remove a particular line from a chart. Can I add a right-click menu to a legend item? I understand that I will have to rebuilt the chart with the remaining lines that are in the chart.
Any suggestions on how to do this would be greatly appreciated.

mitchellsimoens
16 Apr 2012, 9:47 AM
If you can get the element of the legend then you should be able to add a contextmenu event listener