Add two individual Arrays, one for X-values, and another for Y-values.
The length of the Arrays must be equal, otherwise an Error will be thrown.
For optimal performance, use add() if possible.
Array of X-values.
Array of Y-values.
Object itself for fluent interface.
Interface for supplying Arrays of data to a component.
Given data is expected to be two number Arrays of equal length, which will be transformed into a single 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.