Skip to main content
Version: 4.1

Ellipse

An ellipse with a label.

SVG selectors​

Supported attrs properties:

SelectorNodeDescription
rootSVGGElementContainer of all nodes
bodySVGEllipseElementElliptical body of the shape
labelSVGTextElementText inside the body
const ellipse = new shapes.standard.Ellipse();
ellipse.resize(150, 100);
ellipse.position(425, 10);
ellipse.attr('root/title', 'shapes.standard.Ellipse');
ellipse.attr('label/text', 'Ellipse');
ellipse.attr('body/fill', 'lightblue');

Stay in the know

Be where thousands of diagramming enthusiasts meet

Star us on GitHub