Add a new empty event layer to a line.
All channels in the new layer are initialized to empty arrays ([]). Events added to this layer are composed additively on top of layer 0 (in most RPE engine versions).
[]
The RPE chart (modified in place).
Index of the target line.
The index of the newly added event layer.
const layer = addEventLayer(chart, 0);addMoveXEvent(chart, 0, layer, 2, 4, 0, 100); // animate on top layer Copy
const layer = addEventLayer(chart, 0);addMoveXEvent(chart, 0, layer, 2, 4, 0, 100); // animate on top layer
Add a new empty event layer to a line.
All channels in the new layer are initialized to empty arrays (
[]). Events added to this layer are composed additively on top of layer 0 (in most RPE engine versions).