chartlet 0.18.0

Compile structured data into deterministic, accessible static charts
Documentation
1
<div class="chartlet-wrapper"><style>.chartlet-stage{position:relative;display:inline-block;max-width:100%;vertical-align:top}.chartlet-stage>svg{display:block}.chartlet-hotspot{position:absolute;border-radius:8px;cursor:pointer}.chartlet-focus{margin:0 0 12px 0;font-size:13px}.chartlet-focus summary{cursor:pointer;min-height:24px}.chartlet-focus fieldset{border:none;padding:0;margin:4px 0 0 0}.chartlet-focus label{display:inline-flex;align-items:center;min-height:44px;margin-right:14px;cursor:pointer;white-space:nowrap}.chartlet-focus input{margin-right:4px}.chartlet-focus input:focus-visible{outline:2px solid #2563eb;outline-offset:2px}.chartlet-wrapper:has(.chartlet-focus-node:checked) #chartlet-b190dd496bf72afc .chartlet-f{opacity:.18}#chartlet-b190dd496bf72afc-hs-0{left:41.594%;top:1.667%;width:17.307%;height:16.111%}#chartlet-b190dd496bf72afc-hs-1{left:43.457%;top:31.518%;width:13.773%;height:18.194%}#chartlet-b190dd496bf72afc-hs-2{left:22.149%;top:66.508%;width:12.24%;height:10.278%}#chartlet-b190dd496bf72afc-hs-3{left:22.076%;top:85.417%;width:12.387%;height:12.361%}#chartlet-b190dd496bf72afc-hs-4{left:37.537%;top:66.577%;width:25.613%;height:10.139%}#chartlet-b190dd496bf72afc-hs-5{left:37.574%;top:85.625%;width:25.613%;height:11.944%}#chartlet-b190dd496bf72afc-hs-6{left:66.262%;top:63.452%;width:11.662%;height:16.389%}.chartlet-wrapper:has(#chartlet-b190dd496bf72afc-focus-0:checked) #chartlet-b190dd496bf72afc .chartlet-f-0{opacity:1}.chartlet-wrapper:has(#chartlet-b190dd496bf72afc-focus-0:checked) #chartlet-b190dd496bf72afc .chartlet-n-0 .chartlet-flow-node,.chartlet-wrapper:has(#chartlet-b190dd496bf72afc-focus-0:checked) #chartlet-b190dd496bf72afc .chartlet-n-0 .chartlet-seq-box{stroke-width:3}.chartlet-wrapper:has(#chartlet-b190dd496bf72afc-focus-1:checked) #chartlet-b190dd496bf72afc .chartlet-f-1{opacity:1}.chartlet-wrapper:has(#chartlet-b190dd496bf72afc-focus-1:checked) #chartlet-b190dd496bf72afc .chartlet-n-1 .chartlet-flow-node,.chartlet-wrapper:has(#chartlet-b190dd496bf72afc-focus-1:checked) #chartlet-b190dd496bf72afc .chartlet-n-1 .chartlet-seq-box{stroke-width:3}.chartlet-wrapper:has(#chartlet-b190dd496bf72afc-focus-2:checked) #chartlet-b190dd496bf72afc .chartlet-f-2{opacity:1}.chartlet-wrapper:has(#chartlet-b190dd496bf72afc-focus-2:checked) #chartlet-b190dd496bf72afc .chartlet-n-2 .chartlet-flow-node,.chartlet-wrapper:has(#chartlet-b190dd496bf72afc-focus-2:checked) #chartlet-b190dd496bf72afc .chartlet-n-2 .chartlet-seq-box{stroke-width:3}.chartlet-wrapper:has(#chartlet-b190dd496bf72afc-focus-3:checked) #chartlet-b190dd496bf72afc .chartlet-f-3{opacity:1}.chartlet-wrapper:has(#chartlet-b190dd496bf72afc-focus-3:checked) #chartlet-b190dd496bf72afc .chartlet-n-3 .chartlet-flow-node,.chartlet-wrapper:has(#chartlet-b190dd496bf72afc-focus-3:checked) #chartlet-b190dd496bf72afc .chartlet-n-3 .chartlet-seq-box{stroke-width:3}.chartlet-wrapper:has(#chartlet-b190dd496bf72afc-focus-4:checked) #chartlet-b190dd496bf72afc .chartlet-f-4{opacity:1}.chartlet-wrapper:has(#chartlet-b190dd496bf72afc-focus-4:checked) #chartlet-b190dd496bf72afc .chartlet-n-4 .chartlet-flow-node,.chartlet-wrapper:has(#chartlet-b190dd496bf72afc-focus-4:checked) #chartlet-b190dd496bf72afc .chartlet-n-4 .chartlet-seq-box{stroke-width:3}.chartlet-wrapper:has(#chartlet-b190dd496bf72afc-focus-5:checked) #chartlet-b190dd496bf72afc .chartlet-f-5{opacity:1}.chartlet-wrapper:has(#chartlet-b190dd496bf72afc-focus-5:checked) #chartlet-b190dd496bf72afc .chartlet-n-5 .chartlet-flow-node,.chartlet-wrapper:has(#chartlet-b190dd496bf72afc-focus-5:checked) #chartlet-b190dd496bf72afc .chartlet-n-5 .chartlet-seq-box{stroke-width:3}.chartlet-wrapper:has(#chartlet-b190dd496bf72afc-focus-6:checked) #chartlet-b190dd496bf72afc .chartlet-f-6{opacity:1}.chartlet-wrapper:has(#chartlet-b190dd496bf72afc-focus-6:checked) #chartlet-b190dd496bf72afc .chartlet-n-6 .chartlet-flow-node,.chartlet-wrapper:has(#chartlet-b190dd496bf72afc-focus-6:checked) #chartlet-b190dd496bf72afc .chartlet-n-6 .chartlet-seq-box{stroke-width:3}</style><details class="chartlet-focus"><summary>Focus</summary><fieldset><label><input type="radio" name="chartlet-b190dd496bf72afc-focus" checked> Show all</label><label><input type="radio" name="chartlet-b190dd496bf72afc-focus" class="chartlet-focus-node" id="chartlet-b190dd496bf72afc-focus-0"> Customer</label><label><input type="radio" name="chartlet-b190dd496bf72afc-focus" class="chartlet-focus-node" id="chartlet-b190dd496bf72afc-focus-1"> Order</label><label><input type="radio" name="chartlet-b190dd496bf72afc-focus" class="chartlet-focus-node" id="chartlet-b190dd496bf72afc-focus-2"> OrderLine</label><label><input type="radio" name="chartlet-b190dd496bf72afc-focus" class="chartlet-focus-node" id="chartlet-b190dd496bf72afc-focus-3"> Product</label><label><input type="radio" name="chartlet-b190dd496bf72afc-focus" class="chartlet-focus-node" id="chartlet-b190dd496bf72afc-focus-4"> Payment</label><label><input type="radio" name="chartlet-b190dd496bf72afc-focus" class="chartlet-focus-node" id="chartlet-b190dd496bf72afc-focus-5"> CardPayment</label><label><input type="radio" name="chartlet-b190dd496bf72afc-focus" class="chartlet-focus-node" id="chartlet-b190dd496bf72afc-focus-6"> Status</label></fieldset></details><figure class="chartlet-figure" data-viz="chart"><figcaption>Order model</figcaption><div class="chartlet-stage"><svg xmlns="http://www.w3.org/2000/svg" width="900" height="720" viewBox="0 0 900 720" id="chartlet-b190dd496bf72afc" role="img" aria-labelledby="chartlet-b190dd496bf72afc-title chartlet-b190dd496bf72afc-description" class="chartlet-root"><title id="chartlet-b190dd496bf72afc-title">Order model</title><desc id="chartlet-b190dd496bf72afc-description">Class diagram with 7 classes and 6 relations. Customer: 3 attributes, 1 method. Customer is associated with Order (1 : 0..*) [places]. Order: 3 attributes, 2 methods. Order is composed of OrderLine (1 : 1..*); depends on Payment [paid by]; depends on Status. OrderLine: 2 attributes, 0 methods. OrderLine is associated with Product (* : 1). Product: 3 attributes, 0 methods. Payment: 0 attributes, 1 method. CardPayment: 1 attribute, 1 method. CardPayment implements Payment. Status: 4 attributes, 0 methods.</desc><style>.chartlet-root{--chartlet-text:#172033;--chartlet-muted:#344054;--chartlet-grid:#d9dee8;--chartlet-zero:#667085;--chartlet-accent:#2563eb;--chartlet-background:#fff;--chartlet-color-1:#2563eb;--chartlet-color-2:#c2410c;--chartlet-color-3:#475569;--chartlet-color-4:#111827;max-width:100%;height:auto;font-family:Inter,ui-sans-serif,system-ui,sans-serif;color:var(--chartlet-text)}#chartlet-b190dd496bf72afc .chartlet-title{font-size:22px;font-weight:650;fill:var(--chartlet-text)}#chartlet-b190dd496bf72afc .chartlet-label,#chartlet-b190dd496bf72afc .chartlet-tick,#chartlet-b190dd496bf72afc .chartlet-value,#chartlet-b190dd496bf72afc .chartlet-value-inverse,#chartlet-b190dd496bf72afc .chartlet-axis-title{font-size:12px;fill:var(--chartlet-muted)}#chartlet-b190dd496bf72afc .chartlet-value,#chartlet-b190dd496bf72afc .chartlet-value-inverse{font-weight:600}#chartlet-b190dd496bf72afc .chartlet-value{fill:var(--chartlet-text)}#chartlet-b190dd496bf72afc .chartlet-value-inverse{fill:var(--chartlet-background)}#chartlet-b190dd496bf72afc .chartlet-axis-title{font-weight:600}#chartlet-b190dd496bf72afc .chartlet-grid{stroke:var(--chartlet-grid);stroke-width:1}#chartlet-b190dd496bf72afc .chartlet-zero{stroke:var(--chartlet-zero);stroke-width:1.5}#chartlet-b190dd496bf72afc .chartlet-bar,#chartlet-b190dd496bf72afc .chartlet-point{fill:var(--chartlet-accent)}#chartlet-b190dd496bf72afc .chartlet-line{fill:none;stroke:var(--chartlet-accent);stroke-width:3;stroke-linecap:round;stroke-linejoin:round}#chartlet-b190dd496bf72afc .chartlet-background{fill:var(--chartlet-background)}.chartlet-root{--chartlet-node:#eef3fd;--chartlet-lane:#f7f9fc;--chartlet-lane-head:#eef1f6;--chartlet-shadow:rgba(16,24,40,.09);--chartlet-role-blue:#2563eb;--chartlet-role-blue-fill:#eef3fd;--chartlet-role-green:#15803d;--chartlet-role-green-fill:#ecfdf3;--chartlet-role-amber:#b45309;--chartlet-role-amber-fill:#fff7e8;--chartlet-role-teal:#0f766e;--chartlet-role-teal-fill:#e9faf7;--chartlet-role-violet:#6d28d9;--chartlet-role-violet-fill:#f3efff;--chartlet-role-gray:#667085;--chartlet-role-gray-fill:#f7f8fa;--chartlet-role-red:#b42318;--chartlet-role-red-fill:#fef3f2}.chartlet-root.chartlet-theme-dark{--chartlet-node:#1a2436;--chartlet-lane:#121925;--chartlet-lane-head:#18212f;--chartlet-shadow:rgba(0,0,0,.45);--chartlet-role-blue:#7ea6ff;--chartlet-role-blue-fill:#1a2436;--chartlet-role-green:#4ade80;--chartlet-role-green-fill:#132a1d;--chartlet-role-amber:#fbbf24;--chartlet-role-amber-fill:#2b2210;--chartlet-role-teal:#2dd4bf;--chartlet-role-teal-fill:#0f2a27;--chartlet-role-violet:#b69cff;--chartlet-role-violet-fill:#231c38;--chartlet-role-gray:#9aa7bd;--chartlet-role-gray-fill:#161d29;--chartlet-role-red:#f97066;--chartlet-role-red-fill:#2d1616}#chartlet-b190dd496bf72afc .chartlet-role-blue{fill:var(--chartlet-role-blue-fill);stroke:var(--chartlet-role-blue)}#chartlet-b190dd496bf72afc .chartlet-role-green{fill:var(--chartlet-role-green-fill);stroke:var(--chartlet-role-green)}#chartlet-b190dd496bf72afc .chartlet-role-amber{fill:var(--chartlet-role-amber-fill);stroke:var(--chartlet-role-amber)}#chartlet-b190dd496bf72afc .chartlet-role-teal{fill:var(--chartlet-role-teal-fill);stroke:var(--chartlet-role-teal)}#chartlet-b190dd496bf72afc .chartlet-role-violet{fill:var(--chartlet-role-violet-fill);stroke:var(--chartlet-role-violet)}#chartlet-b190dd496bf72afc .chartlet-role-gray{fill:var(--chartlet-role-gray-fill);stroke:var(--chartlet-role-gray)}#chartlet-b190dd496bf72afc .chartlet-role-red{fill:var(--chartlet-role-red-fill);stroke:var(--chartlet-role-red)}#chartlet-b190dd496bf72afc .chartlet-diagram-rim{fill:none;stroke:var(--chartlet-role-teal);stroke-width:1.5}#chartlet-b190dd496bf72afc .chartlet-diagram-shadow{fill:var(--chartlet-shadow);stroke:none;rx:7px}#chartlet-b190dd496bf72afc .chartlet-diagram-chip{fill:var(--chartlet-background);stroke:var(--chartlet-grid);stroke-width:1;rx:4px}#chartlet-b190dd496bf72afc .chartlet-diagram-chip-text{font-size:12px;fill:var(--chartlet-text)}#chartlet-b190dd496bf72afc .chartlet-diagram-badge{fill:var(--chartlet-accent);stroke:var(--chartlet-background);stroke-width:2}#chartlet-b190dd496bf72afc .chartlet-diagram-badge-text{font-size:10px;font-weight:700;fill:var(--chartlet-background)}#chartlet-b190dd496bf72afc .chartlet-flow-node{stroke-width:1.5;stroke-linejoin:round;rx:7px}#chartlet-b190dd496bf72afc .chartlet-flow-start{stroke-width:2}#chartlet-b190dd496bf72afc .chartlet-flow-end{stroke-width:3}#chartlet-b190dd496bf72afc .chartlet-flow-external{stroke-dasharray:5 3}#chartlet-b190dd496bf72afc .chartlet-flow-inner{stroke:var(--chartlet-role-blue);stroke-width:1}#chartlet-b190dd496bf72afc .chartlet-flow-label{font-size:13px;font-weight:600;fill:var(--chartlet-text)}#chartlet-b190dd496bf72afc .chartlet-flow-sublabel{font-size:11px;fill:var(--chartlet-muted)}#chartlet-b190dd496bf72afc .chartlet-flow-edge{fill:none;stroke:var(--chartlet-zero);stroke-width:1.4;stroke-linejoin:round}#chartlet-b190dd496bf72afc .chartlet-flow-dashed{stroke-dasharray:5 4}#chartlet-b190dd496bf72afc .chartlet-flow-dotted{stroke-dasharray:1 4;stroke-linecap:round}#chartlet-b190dd496bf72afc .chartlet-flow-main{stroke:var(--chartlet-accent);stroke-width:2.2}#chartlet-b190dd496bf72afc .chartlet-flow-head{fill:var(--chartlet-zero);stroke:var(--chartlet-zero);stroke-width:1;stroke-linejoin:round}#chartlet-b190dd496bf72afc .chartlet-flow-main-head{fill:var(--chartlet-accent);stroke:var(--chartlet-accent)}#chartlet-b190dd496bf72afc .chartlet-flow-lane{fill:var(--chartlet-lane);stroke:var(--chartlet-grid);stroke-width:1}#chartlet-b190dd496bf72afc .chartlet-flow-lane-alt{fill:var(--chartlet-background)}#chartlet-b190dd496bf72afc .chartlet-flow-lane-head{fill:var(--chartlet-lane-head);stroke:none}#chartlet-b190dd496bf72afc .chartlet-flow-lane-label{font-size:11px;font-weight:650;fill:var(--chartlet-muted);letter-spacing:.04em}#chartlet-b190dd496bf72afc .chartlet-flow-group{fill:var(--chartlet-accent);fill-opacity:.04;stroke:var(--chartlet-zero);stroke-width:1;stroke-dasharray:4 3;rx:10px}#chartlet-b190dd496bf72afc .chartlet-flow-group-label{font-size:11px;font-weight:600;fill:var(--chartlet-muted)}#chartlet-b190dd496bf72afc .chartlet-class-member{font-size:12px;fill:var(--chartlet-text)}#chartlet-b190dd496bf72afc .chartlet-flow-card{font-size:11px;fill:var(--chartlet-muted)}#chartlet-b190dd496bf72afc .chartlet-flow-hollow{fill:var(--chartlet-background)}#chartlet-b190dd496bf72afc .chartlet-flow-solid{fill:var(--chartlet-zero)}#chartlet-b190dd496bf72afc .chartlet-flow-open{fill:none;stroke:var(--chartlet-zero);stroke-width:1.4;stroke-linejoin:round}</style><g class="chartlet-f chartlet-f-0 chartlet-f-1"><polyline points="452.228,128 452.228,192.518 453.095,192.518 453.095,226.928" class="chartlet-flow-edge"><title>Customer → Order: places</title></polyline><text x="441.095" y="222.928" text-anchor="end" class="chartlet-flow-card">0..*</text><text x="440.228" y="140" text-anchor="end" class="chartlet-flow-card">1</text></g><g class="chartlet-f chartlet-f-1 chartlet-f-2"><polyline points="429.095,373.928 429.095,422.446 254.425,422.446 254.425,478.855" class="chartlet-flow-edge"><title>Order → OrderLine</title></polyline><text x="242.425" y="474.855" text-anchor="end" class="chartlet-flow-card">1..*</text><polyline points="429.095,357.928 434.095,365.928 429.095,373.928 424.095,365.928 429.095,357.928" class="chartlet-flow-head chartlet-flow-solid"/><text x="417.095" y="385.928" text-anchor="end" class="chartlet-flow-card">1</text></g><g class="chartlet-f chartlet-f-2 chartlet-f-3"><polyline points="254.425,552.855 254.425,615" class="chartlet-flow-edge"><title>OrderLine → Product</title></polyline><text x="242.425" y="611" text-anchor="end" class="chartlet-flow-card">1</text><text x="242.425" y="564.855" text-anchor="end" class="chartlet-flow-card">*</text></g><g class="chartlet-f chartlet-f-4 chartlet-f-5"><polyline points="453.157,564.355 453.425,616.5" class="chartlet-flow-edge chartlet-flow-dashed"><title>Payment → CardPayment</title></polyline><polyline points="453.095,552.355 459.157,564.324 447.157,564.386 453.095,552.355" class="chartlet-flow-head chartlet-flow-hollow"/></g><g class="chartlet-f chartlet-f-1 chartlet-f-4"><polyline points="453.095,357.928 453.095,471.355" class="chartlet-flow-edge chartlet-flow-dashed"><title>Order → Payment: paid by</title></polyline><polyline points="449.595,471.355 453.095,479.355 456.595,471.355" class="chartlet-flow-open"/></g><g class="chartlet-f chartlet-f-1 chartlet-f-6"><polyline points="477.095,357.928 477.095,422.446 648.835,422.446 648.835,448.855" class="chartlet-flow-edge chartlet-flow-dashed"><title>Order → Status</title></polyline><polyline points="645.335,448.855 648.835,456.855 652.335,448.855" class="chartlet-flow-open"/></g><g class="chartlet-f chartlet-n-0 chartlet-f-0 chartlet-f-1"></g><g class="chartlet-f chartlet-n-1 chartlet-f-0 chartlet-f-1 chartlet-f-2 chartlet-f-4 chartlet-f-6"></g><g class="chartlet-f chartlet-n-2 chartlet-f-1 chartlet-f-2 chartlet-f-3"></g><g class="chartlet-f chartlet-n-3 chartlet-f-2 chartlet-f-3"></g><g class="chartlet-f chartlet-n-4 chartlet-f-1 chartlet-f-4 chartlet-f-5"></g><g class="chartlet-f chartlet-n-5 chartlet-f-4 chartlet-f-5"></g><g class="chartlet-f chartlet-n-6 chartlet-f-1 chartlet-f-6"></g><g class="chartlet-f chartlet-f-0 chartlet-f-1"><rect x="456.228" y="133" width="47.2" height="21" class="chartlet-diagram-chip"/><text x="461.228" y="147" text-anchor="start" class="chartlet-diagram-chip-text">places</text></g><g class="chartlet-f chartlet-f-1 chartlet-f-4"><rect x="481.095" y="362.928" width="51.04" height="21" class="chartlet-diagram-chip"/><text x="486.095" y="376.928" text-anchor="start" class="chartlet-diagram-chip-text">paid by</text></g><g class="chartlet-f chartlet-n-0 chartlet-f-0 chartlet-f-1"><rect x="374.348" y="14.5" width="155.76" height="116" class="chartlet-diagram-shadow"/><rect x="374.348" y="12" width="155.76" height="116" class="chartlet-flow-node chartlet-role-blue chartlet-class"><title>Customer</title></rect><text x="452.228" y="38" text-anchor="middle" class="chartlet-flow-label">Customer</text><line x1="374.348" y1="44" x2="530.108" y2="44" class="chartlet-flow-inner"/><text x="386.348" y="61" text-anchor="start" class="chartlet-class-member">+ id: Int</text><text x="386.348" y="76" text-anchor="start" class="chartlet-class-member">+ name: String</text><text x="386.348" y="91" text-anchor="start" class="chartlet-class-member">+ email: String</text><line x1="374.348" y1="101" x2="530.108" y2="101" class="chartlet-flow-inner"/><text x="386.348" y="118" text-anchor="start" class="chartlet-class-member">+ placeOrder(): Order</text></g><g class="chartlet-f chartlet-n-1 chartlet-f-0 chartlet-f-1 chartlet-f-2 chartlet-f-4 chartlet-f-6"><rect x="391.115" y="229.428" width="123.96" height="131" class="chartlet-diagram-shadow"/><rect x="391.115" y="226.928" width="123.96" height="131" class="chartlet-flow-node chartlet-role-blue chartlet-class"><title>Order</title></rect><text x="453.095" y="252.928" text-anchor="middle" class="chartlet-flow-label">Order</text><line x1="391.115" y1="258.928" x2="515.075" y2="258.928" class="chartlet-flow-inner"/><text x="403.115" y="275.928" text-anchor="start" class="chartlet-class-member">+ id: Int</text><text x="403.115" y="290.928" text-anchor="start" class="chartlet-class-member">+ placedAt: Date</text><text x="403.115" y="305.928" text-anchor="start" class="chartlet-class-member">+ status: Status</text><line x1="391.115" y1="315.928" x2="515.075" y2="315.928" class="chartlet-flow-inner"/><text x="403.115" y="332.928" text-anchor="start" class="chartlet-class-member">+ total(): Money</text><text x="403.115" y="347.928" text-anchor="start" class="chartlet-class-member">+ cancel()</text></g><g class="chartlet-f chartlet-n-2 chartlet-f-1 chartlet-f-2 chartlet-f-3"><rect x="199.345" y="481.355" width="110.16" height="74" class="chartlet-diagram-shadow"/><rect x="199.345" y="478.855" width="110.16" height="74" class="chartlet-flow-node chartlet-role-blue chartlet-class"><title>OrderLine</title></rect><text x="254.425" y="504.855" text-anchor="middle" class="chartlet-flow-label">OrderLine</text><line x1="199.345" y1="510.855" x2="309.505" y2="510.855" class="chartlet-flow-inner"/><text x="211.345" y="527.855" text-anchor="start" class="chartlet-class-member">+ quantity: Int</text><text x="211.345" y="542.855" text-anchor="start" class="chartlet-class-member">+ price: Money</text></g><g class="chartlet-f chartlet-n-3 chartlet-f-2 chartlet-f-3"><rect x="198.685" y="617.5" width="111.48" height="89" class="chartlet-diagram-shadow"/><rect x="198.685" y="615" width="111.48" height="89" class="chartlet-flow-node chartlet-role-blue chartlet-class"><title>Product</title></rect><text x="254.425" y="641" text-anchor="middle" class="chartlet-flow-label">Product</text><line x1="198.685" y1="647" x2="310.165" y2="647" class="chartlet-flow-inner"/><text x="210.685" y="664" text-anchor="start" class="chartlet-class-member">+ sku: String</text><text x="210.685" y="679" text-anchor="start" class="chartlet-class-member">+ name: String</text><text x="210.685" y="694" text-anchor="start" class="chartlet-class-member">+ price: Money</text></g><g class="chartlet-f chartlet-n-4 chartlet-f-1 chartlet-f-4 chartlet-f-5"><rect x="337.835" y="481.855" width="230.52" height="73" class="chartlet-diagram-shadow"/><rect x="337.835" y="479.355" width="230.52" height="73" class="chartlet-flow-node chartlet-role-blue chartlet-class"><title>Payment – «interface»</title></rect><text x="453.095" y="502.355" text-anchor="middle" class="chartlet-flow-sublabel">«interface»</text><text x="453.095" y="519.355" text-anchor="middle" class="chartlet-flow-label">Payment</text><line x1="337.835" y1="525.355" x2="568.355" y2="525.355" class="chartlet-flow-inner"/><text x="349.835" y="542.355" text-anchor="start" class="chartlet-class-member">+ charge(amount: Money): Receipt</text></g><g class="chartlet-f chartlet-n-5 chartlet-f-4 chartlet-f-5"><rect x="338.165" y="619" width="230.52" height="86" class="chartlet-diagram-shadow"/><rect x="338.165" y="616.5" width="230.52" height="86" class="chartlet-flow-node chartlet-role-blue chartlet-class"><title>CardPayment</title></rect><text x="453.425" y="642.5" text-anchor="middle" class="chartlet-flow-label">CardPayment</text><line x1="338.165" y1="648.5" x2="568.685" y2="648.5" class="chartlet-flow-inner"/><text x="350.165" y="665.5" text-anchor="start" class="chartlet-class-member">- number: String</text><line x1="338.165" y1="675.5" x2="568.685" y2="675.5" class="chartlet-flow-inner"/><text x="350.165" y="692.5" text-anchor="start" class="chartlet-class-member">+ charge(amount: Money): Receipt</text></g><g class="chartlet-f chartlet-n-6 chartlet-f-1 chartlet-f-6"><rect x="596.355" y="459.355" width="104.96" height="118" class="chartlet-diagram-shadow"/><rect x="596.355" y="456.855" width="104.96" height="118" class="chartlet-flow-node chartlet-role-blue chartlet-class"><title>Status – «enumeration»</title></rect><text x="648.835" y="479.855" text-anchor="middle" class="chartlet-flow-sublabel">«enumeration»</text><text x="648.835" y="496.855" text-anchor="middle" class="chartlet-flow-label">Status</text><line x1="596.355" y1="502.855" x2="701.315" y2="502.855" class="chartlet-flow-inner"/><text x="608.355" y="519.855" text-anchor="start" class="chartlet-class-member">PLACED</text><text x="608.355" y="534.855" text-anchor="start" class="chartlet-class-member">PAID</text><text x="608.355" y="549.855" text-anchor="start" class="chartlet-class-member">SHIPPED</text><text x="608.355" y="564.855" text-anchor="start" class="chartlet-class-member">CANCELLED</text></g></svg><label class="chartlet-hotspot" id="chartlet-b190dd496bf72afc-hs-0" for="chartlet-b190dd496bf72afc-focus-0"></label><label class="chartlet-hotspot" id="chartlet-b190dd496bf72afc-hs-1" for="chartlet-b190dd496bf72afc-focus-1"></label><label class="chartlet-hotspot" id="chartlet-b190dd496bf72afc-hs-2" for="chartlet-b190dd496bf72afc-focus-2"></label><label class="chartlet-hotspot" id="chartlet-b190dd496bf72afc-hs-3" for="chartlet-b190dd496bf72afc-focus-3"></label><label class="chartlet-hotspot" id="chartlet-b190dd496bf72afc-hs-4" for="chartlet-b190dd496bf72afc-focus-4"></label><label class="chartlet-hotspot" id="chartlet-b190dd496bf72afc-hs-5" for="chartlet-b190dd496bf72afc-focus-5"></label><label class="chartlet-hotspot" id="chartlet-b190dd496bf72afc-hs-6" for="chartlet-b190dd496bf72afc-focus-6"></label></div><p class="chartlet-source">Source: Illustrative domain model</p><details class="chartlet-data" data-viz-text><summary>Show chart data</summary><table><caption>Data for Order model</caption><thead><tr><th scope="col">Item</th><th scope="col">Kind</th><th scope="col">Attributes</th><th scope="col">Methods</th><th scope="col">Relations</th></tr></thead><tbody><tr><th scope="row">Customer</th><td>Class</td><td>+ id: Int; + name: String; + email: String</td><td>+ placeOrder(): Order</td><td>is associated with Order (1 : 0..*) [places]</td></tr><tr><th scope="row">Order</th><td>Class</td><td>+ id: Int; + placedAt: Date; + status: Status</td><td>+ total(): Money; + cancel()</td><td>is composed of OrderLine (1 : 1..*); depends on Payment [paid by]; depends on Status</td></tr><tr><th scope="row">OrderLine</th><td>Class</td><td>+ quantity: Int; + price: Money</td><td></td><td>is associated with Product (* : 1)</td></tr><tr><th scope="row">Product</th><td>Class</td><td>+ sku: String; + name: String; + price: Money</td><td></td><td></td></tr><tr><th scope="row">Payment</th><td>Interface</td><td></td><td>+ charge(amount: Money): Receipt</td><td></td></tr><tr><th scope="row">CardPayment</th><td>Class</td><td>- number: String</td><td>+ charge(amount: Money): Receipt</td><td>implements Payment</td></tr><tr><th scope="row">Status</th><td>Enumeration</td><td>PLACED; PAID; SHIPPED; CANCELLED</td><td></td><td></td></tr></tbody></table></details></figure></div>