removing seriesLabel from constructor function and keeping it as a variable in the isLegendShown function