A circle with a label.

Supported attrs properties

Selector Node Description
root SVGGElement Container of all nodes
body SVGCircleElement Circular body of the shape
label SVGTextElement Text inside the body
var circle = new joint.shapes.standard.Circle();
circle.resize(100, 100);
circle.position(250, 10);
circle.attr('root/title', 'joint.shapes.standard.Circle');
circle.attr('label/text', 'Circle');
circle.attr('body/fill', 'lightblue');
circle.addTo(graph);