I added EnhancedLegendRenderer's .js in my project and tried with code that you provided but it is not working for me.
I would like to know that what is my_plot in your code it is id or some thing.
Because I am using jqplot with Primeface so I tried like.
var series_to_hide_idx = 1;
var s = PF('myChartId').cfg.series[series_to_hide_idx ];
PF('myChartId').cfg.legend._elem.find('td').eq(sidx * 2).addClass('jqplot-series-hidden');
PF('myChartId').cfg.legend._elem.find('td').eq((sidx * 2) + 1).addClass('jqplot-series-hidden');
this code give me error something like _elem is not property and find() is not method.
Could you please help me.
Thanks a lot.