Skip to main content
Version: 4.1

Circle

A circle with a label.

SVG selectors​

Supported attrs properties:

SelectorNodeDescription
rootSVGGElementContainer of all nodes
bodySVGCircleElementCircular body of the shape
labelSVGTextElementText inside the body
const circle = new shapes.standard.Circle();
circle.resize(100, 100);
circle.position(250, 10);
circle.attr('root/title', 'shapes.standard.Circle');
circle.attr('label/text', 'Circle');
circle.attr('body/fill', 'lightblue');

Stay in the know

Be where thousands of diagramming enthusiasts meet

Star us on GitHub