makes the legend item disabled if the series is also disabled