The following is working in my report to hide the first legend item. However, I want to hide the second. Logic says to pass index 1 instead of 0, but this doesn't work. What am I missing?
xyplot = chart.plot
xyplot.getRenderer().setSeriesVisibleInLegend(0, False) # this works
xyplot = chart.plot
xyplot.getRenderer().setSeriesVisibleInLegend(1, False) # this does nothing