Updated the way we pass information in to the chart method. We now pass in an object that contains the required series name, series data and the type of plot to use for the series.