Note: chartType, data and config are properties of scope. Not the actual values. x defines what goes on x axis, must be a string, y defines what goes on y axis, must be an array of numbers. Values are mapped to series by index. y belongs to series, y belongs to series and so on.