Moved datarange, range and groups as parameters in each chart type.