Explore the API
- Change data
- Add random object
- Update an object
- Remove last object
- Remove all objects
description
The Objects component allows for inserting arbitrary SVG elements (or groups) in the chart using the data coordinates or absolute coordinates of the widget. In this example we encoded the different parameters in the color and shape of the objects. When adding a random object:
- Color denotes order: foreground (green) or background (red) or outside the plot area (blue).
- Shape denotes position: floating (circle) or fixed (rectangle) position.