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:

Note that when the chart is updated, inserted elements are not resized, only their position is updated if they are floating objects. This example shows the available methods for the component and demonstrates its behavior when various properties of the chart are changed.

code