Interface for supplying an Array of Y data to a component.
Given data is expected to be number values, which will be transformed into an array of XY-compatible points. This method is for end user utility, and simply transform given data to the format of add(). As such, they cause additional performance overhead, so use add() whenever possible.
Add an Array of Y-values. Each Y-value will be paired with an automatically generated X-value, based on step-argument.
For optimal performance, use add() if possible.
Array of Y-values.
Optional step between each X coordinate. Defaults to 1.
Optional value for first generated X-value. Defaults to 0.
Object itself for fluent interface.