chartlet 0.23.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-6dde3ab5de8f2092 .chartlet-f{opacity:.18}#chartlet-6dde3ab5de8f2092-hs-0{left:43.556%;top:5.789%;width:12.444%;height:10.526%}#chartlet-6dde3ab5de8f2092-hs-1{left:42.667%;top:26.842%;width:14.222%;height:13.684%}#chartlet-6dde3ab5de8f2092-hs-2{left:18.222%;top:58.947%;width:14.222%;height:13.684%}#chartlet-6dde3ab5de8f2092-hs-3{left:41.778%;top:60.526%;width:12.444%;height:10.526%}#chartlet-6dde3ab5de8f2092-hs-4{left:66.222%;top:60.526%;width:15.111%;height:10.526%}#chartlet-6dde3ab5de8f2092-hs-5{left:43.556%;top:86.842%;width:12.444%;height:10.526%}.chartlet-wrapper:has(#chartlet-6dde3ab5de8f2092-focus-0:checked) #chartlet-6dde3ab5de8f2092 .chartlet-f-0{opacity:1}.chartlet-wrapper:has(#chartlet-6dde3ab5de8f2092-focus-0:checked) #chartlet-6dde3ab5de8f2092 .chartlet-n-0 .chartlet-flow-node,.chartlet-wrapper:has(#chartlet-6dde3ab5de8f2092-focus-0:checked) #chartlet-6dde3ab5de8f2092 .chartlet-n-0 .chartlet-seq-box{stroke-width:3}.chartlet-wrapper:has(#chartlet-6dde3ab5de8f2092-focus-1:checked) #chartlet-6dde3ab5de8f2092 .chartlet-f-1{opacity:1}.chartlet-wrapper:has(#chartlet-6dde3ab5de8f2092-focus-1:checked) #chartlet-6dde3ab5de8f2092 .chartlet-n-1 .chartlet-flow-node,.chartlet-wrapper:has(#chartlet-6dde3ab5de8f2092-focus-1:checked) #chartlet-6dde3ab5de8f2092 .chartlet-n-1 .chartlet-seq-box{stroke-width:3}.chartlet-wrapper:has(#chartlet-6dde3ab5de8f2092-focus-2:checked) #chartlet-6dde3ab5de8f2092 .chartlet-f-2{opacity:1}.chartlet-wrapper:has(#chartlet-6dde3ab5de8f2092-focus-2:checked) #chartlet-6dde3ab5de8f2092 .chartlet-n-2 .chartlet-flow-node,.chartlet-wrapper:has(#chartlet-6dde3ab5de8f2092-focus-2:checked) #chartlet-6dde3ab5de8f2092 .chartlet-n-2 .chartlet-seq-box{stroke-width:3}.chartlet-wrapper:has(#chartlet-6dde3ab5de8f2092-focus-3:checked) #chartlet-6dde3ab5de8f2092 .chartlet-f-3{opacity:1}.chartlet-wrapper:has(#chartlet-6dde3ab5de8f2092-focus-3:checked) #chartlet-6dde3ab5de8f2092 .chartlet-n-3 .chartlet-flow-node,.chartlet-wrapper:has(#chartlet-6dde3ab5de8f2092-focus-3:checked) #chartlet-6dde3ab5de8f2092 .chartlet-n-3 .chartlet-seq-box{stroke-width:3}.chartlet-wrapper:has(#chartlet-6dde3ab5de8f2092-focus-4:checked) #chartlet-6dde3ab5de8f2092 .chartlet-f-4{opacity:1}.chartlet-wrapper:has(#chartlet-6dde3ab5de8f2092-focus-4:checked) #chartlet-6dde3ab5de8f2092 .chartlet-n-4 .chartlet-flow-node,.chartlet-wrapper:has(#chartlet-6dde3ab5de8f2092-focus-4:checked) #chartlet-6dde3ab5de8f2092 .chartlet-n-4 .chartlet-seq-box{stroke-width:3}.chartlet-wrapper:has(#chartlet-6dde3ab5de8f2092-focus-5:checked) #chartlet-6dde3ab5de8f2092 .chartlet-f-5{opacity:1}.chartlet-wrapper:has(#chartlet-6dde3ab5de8f2092-focus-5:checked) #chartlet-6dde3ab5de8f2092 .chartlet-n-5 .chartlet-flow-node,.chartlet-wrapper:has(#chartlet-6dde3ab5de8f2092-focus-5:checked) #chartlet-6dde3ab5de8f2092 .chartlet-n-5 .chartlet-seq-box{stroke-width:3}</style><details class="chartlet-focus"><summary>Focus</summary><fieldset><label><input type="radio" name="chartlet-6dde3ab5de8f2092-focus" checked> Show all</label><label><input type="radio" name="chartlet-6dde3ab5de8f2092-focus" class="chartlet-focus-node" id="chartlet-6dde3ab5de8f2092-focus-0"> Customer</label><label><input type="radio" name="chartlet-6dde3ab5de8f2092-focus" class="chartlet-focus-node" id="chartlet-6dde3ab5de8f2092-focus-1"> Order</label><label><input type="radio" name="chartlet-6dde3ab5de8f2092-focus" class="chartlet-focus-node" id="chartlet-6dde3ab5de8f2092-focus-2"> Invoice</label><label><input type="radio" name="chartlet-6dde3ab5de8f2092-focus" class="chartlet-focus-node" id="chartlet-6dde3ab5de8f2092-focus-3"> InvoiceLine</label><label><input type="radio" name="chartlet-6dde3ab5de8f2092-focus" class="chartlet-focus-node" id="chartlet-6dde3ab5de8f2092-focus-4"> TaxRate</label><label><input type="radio" name="chartlet-6dde3ab5de8f2092-focus" class="chartlet-focus-node" id="chartlet-6dde3ab5de8f2092-focus-5"> Reminder</label></fieldset></details><figure class="chartlet-figure" data-viz="chart"><figcaption>Orders and their invoices</figcaption><div class="chartlet-stage"><svg xmlns="http://www.w3.org/2000/svg" width="900" height="760" viewBox="0 0 900 760" id="chartlet-6dde3ab5de8f2092" role="img" aria-labelledby="chartlet-6dde3ab5de8f2092-title chartlet-6dde3ab5de8f2092-description" class="chartlet-root"><title id="chartlet-6dde3ab5de8f2092-title">Orders and their invoices</title><desc id="chartlet-6dde3ab5de8f2092-description">Class diagram with 6 classes and 5 relations in 2 packages. Sales: Customer, Order. Billing: Invoice, InvoiceLine, TaxRate. Most connected: Invoice (3 connections). Bottleneck: Invoice; without it the diagram falls apart. Customer: 2 attributes, 0 methods. Customer is associated with Order (1 : 0..*) [places]. Order: 2 attributes, 1 method. Order is associated with Invoice (1 : 1..*) [billed as]. Invoice: 2 attributes, 1 method. Invoice is composed of InvoiceLine (1 : 1..*) [lists]; is associated with Reminder (1 : 0..3) [dunned by]. InvoiceLine: 2 attributes, 0 methods. InvoiceLine is associated with TaxRate (* : 1) [taxed at]. TaxRate: 2 attributes, 0 methods. Reminder: 2 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-6dde3ab5de8f2092 .chartlet-title{font-size:22px;font-weight:650;fill:var(--chartlet-text)}#chartlet-6dde3ab5de8f2092 .chartlet-label,#chartlet-6dde3ab5de8f2092 .chartlet-tick,#chartlet-6dde3ab5de8f2092 .chartlet-value,#chartlet-6dde3ab5de8f2092 .chartlet-value-inverse,#chartlet-6dde3ab5de8f2092 .chartlet-axis-title{font-size:12px;fill:var(--chartlet-muted)}#chartlet-6dde3ab5de8f2092 .chartlet-value,#chartlet-6dde3ab5de8f2092 .chartlet-value-inverse{font-weight:600}#chartlet-6dde3ab5de8f2092 .chartlet-value{fill:var(--chartlet-text)}#chartlet-6dde3ab5de8f2092 .chartlet-value-inverse{fill:var(--chartlet-background)}#chartlet-6dde3ab5de8f2092 .chartlet-axis-title{font-weight:600}#chartlet-6dde3ab5de8f2092 .chartlet-grid{stroke:var(--chartlet-grid);stroke-width:1}#chartlet-6dde3ab5de8f2092 .chartlet-zero{stroke:var(--chartlet-zero);stroke-width:1.5}#chartlet-6dde3ab5de8f2092 .chartlet-bar,#chartlet-6dde3ab5de8f2092 .chartlet-point{fill:var(--chartlet-accent)}#chartlet-6dde3ab5de8f2092 .chartlet-line{fill:none;stroke:var(--chartlet-accent);stroke-width:3;stroke-linecap:round;stroke-linejoin:round}#chartlet-6dde3ab5de8f2092 .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-6dde3ab5de8f2092 .chartlet-role-blue{fill:var(--chartlet-role-blue-fill);stroke:var(--chartlet-role-blue)}#chartlet-6dde3ab5de8f2092 .chartlet-role-green{fill:var(--chartlet-role-green-fill);stroke:var(--chartlet-role-green)}#chartlet-6dde3ab5de8f2092 .chartlet-role-amber{fill:var(--chartlet-role-amber-fill);stroke:var(--chartlet-role-amber)}#chartlet-6dde3ab5de8f2092 .chartlet-role-teal{fill:var(--chartlet-role-teal-fill);stroke:var(--chartlet-role-teal)}#chartlet-6dde3ab5de8f2092 .chartlet-role-violet{fill:var(--chartlet-role-violet-fill);stroke:var(--chartlet-role-violet)}#chartlet-6dde3ab5de8f2092 .chartlet-role-gray{fill:var(--chartlet-role-gray-fill);stroke:var(--chartlet-role-gray)}#chartlet-6dde3ab5de8f2092 .chartlet-role-red{fill:var(--chartlet-role-red-fill);stroke:var(--chartlet-role-red)}#chartlet-6dde3ab5de8f2092 .chartlet-diagram-rim{fill:none;stroke:var(--chartlet-role-teal);stroke-width:1.5}#chartlet-6dde3ab5de8f2092 .chartlet-diagram-shadow{fill:var(--chartlet-shadow);stroke:none;rx:7px}#chartlet-6dde3ab5de8f2092 .chartlet-diagram-chip{fill:var(--chartlet-background);stroke:var(--chartlet-grid);stroke-width:1;rx:4px}#chartlet-6dde3ab5de8f2092 .chartlet-diagram-chip-text{font-size:12px;fill:var(--chartlet-text)}#chartlet-6dde3ab5de8f2092 .chartlet-diagram-badge{fill:var(--chartlet-accent);stroke:var(--chartlet-background);stroke-width:2}#chartlet-6dde3ab5de8f2092 .chartlet-diagram-badge-text{font-size:10px;font-weight:700;fill:var(--chartlet-background)}#chartlet-6dde3ab5de8f2092 .chartlet-flow-node{stroke-width:1.5;stroke-linejoin:round;rx:7px}#chartlet-6dde3ab5de8f2092 .chartlet-flow-start{stroke-width:2}#chartlet-6dde3ab5de8f2092 .chartlet-flow-end{stroke-width:3}#chartlet-6dde3ab5de8f2092 .chartlet-flow-external{stroke-dasharray:5 3}#chartlet-6dde3ab5de8f2092 .chartlet-flow-inner{stroke:var(--chartlet-role-blue);stroke-width:1}#chartlet-6dde3ab5de8f2092 .chartlet-flow-label{font-size:13px;font-weight:600;fill:var(--chartlet-text)}#chartlet-6dde3ab5de8f2092 .chartlet-flow-sublabel{font-size:11px;fill:var(--chartlet-muted)}#chartlet-6dde3ab5de8f2092 .chartlet-flow-edge{fill:none;stroke:var(--chartlet-zero);stroke-width:1.4;stroke-linejoin:round}#chartlet-6dde3ab5de8f2092 .chartlet-flow-dashed{stroke-dasharray:5 4}#chartlet-6dde3ab5de8f2092 .chartlet-flow-dotted{stroke-dasharray:1 4;stroke-linecap:round}#chartlet-6dde3ab5de8f2092 .chartlet-flow-main{stroke:var(--chartlet-accent);stroke-width:2.2}#chartlet-6dde3ab5de8f2092 .chartlet-flow-head{fill:var(--chartlet-zero);stroke:var(--chartlet-zero);stroke-width:1;stroke-linejoin:round}#chartlet-6dde3ab5de8f2092 .chartlet-flow-main-head{fill:var(--chartlet-accent);stroke:var(--chartlet-accent)}#chartlet-6dde3ab5de8f2092 .chartlet-flow-lane{fill:var(--chartlet-lane);stroke:var(--chartlet-grid);stroke-width:1}#chartlet-6dde3ab5de8f2092 .chartlet-flow-lane-alt{fill:var(--chartlet-background)}#chartlet-6dde3ab5de8f2092 .chartlet-flow-lane-head{fill:var(--chartlet-lane-head);stroke:none}#chartlet-6dde3ab5de8f2092 .chartlet-flow-lane-label{font-size:11px;font-weight:650;fill:var(--chartlet-muted);letter-spacing:.04em}#chartlet-6dde3ab5de8f2092 .chartlet-flow-group{fill:var(--chartlet-accent);fill-opacity:.04;stroke:var(--chartlet-zero);stroke-width:1;stroke-dasharray:4 3;rx:10px}#chartlet-6dde3ab5de8f2092 .chartlet-flow-group-label{font-size:11px;font-weight:600;fill:var(--chartlet-muted)}#chartlet-6dde3ab5de8f2092 .chartlet-class-member{font-size:12px;fill:var(--chartlet-text)}#chartlet-6dde3ab5de8f2092 .chartlet-flow-card{font-size:11px;fill:var(--chartlet-muted)}#chartlet-6dde3ab5de8f2092 .chartlet-flow-hollow{fill:var(--chartlet-background)}#chartlet-6dde3ab5de8f2092 .chartlet-flow-solid{fill:var(--chartlet-zero)}#chartlet-6dde3ab5de8f2092 .chartlet-flow-open{fill:none;stroke:var(--chartlet-zero);stroke-width:1.4;stroke-linejoin:round}</style><rect x="372" y="16" width="152" height="304" class="chartlet-flow-group"/><text x="380" y="29" text-anchor="start" class="chartlet-flow-group-label">Sales</text><g class="chartlet-f chartlet-f-0 chartlet-f-1"><polyline points="448,124 448,204" class="chartlet-flow-edge"><title>Customer → Order: places</title></polyline><text x="436" y="200" text-anchor="end" class="chartlet-flow-card">0..*</text><text x="436" y="136" text-anchor="end" class="chartlet-flow-card">1</text></g><g class="chartlet-f chartlet-f-1 chartlet-f-2"><polyline points="448,308 448,386.111 228,386.111 228,420 228,448" class="chartlet-flow-edge"><title>Order → Invoice: billed as</title></polyline><text x="216" y="444" text-anchor="end" class="chartlet-flow-card">1..*</text><text x="436" y="320" text-anchor="end" class="chartlet-flow-card">1</text></g><g class="chartlet-f chartlet-f-2 chartlet-f-5"><polyline points="228,552 228,564 228,625.667 448,625.667 448,660" class="chartlet-flow-edge"><title>Invoice → Reminder: dunned by</title></polyline><text x="436" y="656" text-anchor="end" class="chartlet-flow-card">0..3</text><text x="216" y="564" text-anchor="end" class="chartlet-flow-card">1</text></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"></g><g class="chartlet-f chartlet-n-5 chartlet-f-2 chartlet-f-5"></g><g class="chartlet-f chartlet-f-0 chartlet-f-1"><rect x="452" y="129" width="47.2" height="21" class="chartlet-diagram-chip"/><text x="457" y="143" text-anchor="start" class="chartlet-diagram-chip-text">places</text></g><g class="chartlet-f chartlet-f-1 chartlet-f-2"><rect x="452" y="323" width="58.24" height="21" class="chartlet-diagram-chip"/><text x="457" y="337" text-anchor="start" class="chartlet-diagram-chip-text">billed as</text></g><g class="chartlet-f chartlet-f-2 chartlet-f-5"><rect x="156.4" y="569" width="67.6" height="21" class="chartlet-diagram-chip"/><text x="219" y="583" text-anchor="end" class="chartlet-diagram-chip-text">dunned by</text></g><g class="chartlet-f chartlet-n-0 chartlet-f-0 chartlet-f-1"><rect x="392" y="46.5" width="112" height="80" class="chartlet-diagram-shadow"/><rect x="392" y="44" width="112" height="80" class="chartlet-flow-node chartlet-role-blue chartlet-class"><title>Customer</title></rect><text x="448" y="70" text-anchor="middle" class="chartlet-flow-label">Customer</text><line x1="392" y1="76" x2="504" y2="76" class="chartlet-flow-inner"/><text x="404" y="93" text-anchor="start" class="chartlet-class-member">+ id: Int</text><text x="404" y="108" text-anchor="start" class="chartlet-class-member">+ name: String</text></g><g class="chartlet-f chartlet-n-1 chartlet-f-0 chartlet-f-1 chartlet-f-2"><rect x="384" y="206.5" width="128" height="104" class="chartlet-diagram-shadow"/><rect x="384" y="204" width="128" height="104" class="chartlet-flow-node chartlet-role-blue chartlet-class"><title>Order</title></rect><text x="448" y="230" text-anchor="middle" class="chartlet-flow-label">Order</text><line x1="384" y1="236" x2="512" y2="236" class="chartlet-flow-inner"/><text x="396" y="253" text-anchor="start" class="chartlet-class-member">+ id: Int</text><text x="396" y="268" text-anchor="start" class="chartlet-class-member">+ placedAt: Date</text><line x1="384" y1="278" x2="512" y2="278" class="chartlet-flow-inner"/><text x="396" y="295" text-anchor="start" class="chartlet-class-member">+ total(): Money</text></g><rect x="152" y="420" width="592" height="144" class="chartlet-flow-group"/><text x="160" y="433" text-anchor="start" class="chartlet-flow-group-label">Billing</text><g class="chartlet-f chartlet-f-2 chartlet-f-3"><polyline points="308,500 376,500" class="chartlet-flow-edge"><title>Invoice → InvoiceLine: lists</title></polyline><text x="368" y="492" text-anchor="start" class="chartlet-flow-card">1..*</text><polyline points="292,500 300,495 308,500 300,505 292,500" class="chartlet-flow-head chartlet-flow-solid"/><text x="316" y="492" text-anchor="start" class="chartlet-flow-card">1</text></g><g class="chartlet-f chartlet-f-3 chartlet-f-4"><polyline points="488,500 596,500" class="chartlet-flow-edge"><title>InvoiceLine → TaxRate: taxed at</title></polyline><text x="588" y="492" text-anchor="start" class="chartlet-flow-card">1</text><text x="496" y="492" text-anchor="start" class="chartlet-flow-card">*</text></g><g class="chartlet-f chartlet-n-2 chartlet-f-1 chartlet-f-2 chartlet-f-3 chartlet-f-5"></g><g class="chartlet-f chartlet-n-3 chartlet-f-2 chartlet-f-3 chartlet-f-4"></g><g class="chartlet-f chartlet-n-4 chartlet-f-3 chartlet-f-4"></g><g class="chartlet-f chartlet-f-2 chartlet-f-3"><rect x="296" y="475" width="37.36" height="21" class="chartlet-diagram-chip"/><text x="301" y="489" text-anchor="start" class="chartlet-diagram-chip-text">lists</text></g><g class="chartlet-f chartlet-f-3 chartlet-f-4"><rect x="492" y="475" width="60.88" height="21" class="chartlet-diagram-chip"/><text x="497" y="489" text-anchor="start" class="chartlet-diagram-chip-text">taxed at</text></g><g class="chartlet-f chartlet-n-2 chartlet-f-1 chartlet-f-2 chartlet-f-3 chartlet-f-5"><rect x="164" y="450.5" width="128" height="104" class="chartlet-diagram-shadow"/><rect x="164" y="448" width="128" height="104" class="chartlet-flow-node chartlet-role-blue chartlet-class"><title>Invoice</title></rect><text x="228" y="474" text-anchor="middle" class="chartlet-flow-label">Invoice</text><line x1="164" y1="480" x2="292" y2="480" class="chartlet-flow-inner"/><text x="176" y="497" text-anchor="start" class="chartlet-class-member">+ number: String</text><text x="176" y="512" text-anchor="start" class="chartlet-class-member">+ issuedAt: Date</text><line x1="164" y1="522" x2="292" y2="522" class="chartlet-flow-inner"/><text x="176" y="539" text-anchor="start" class="chartlet-class-member">+ total(): Money</text></g><g class="chartlet-f chartlet-n-3 chartlet-f-2 chartlet-f-3 chartlet-f-4"><rect x="376" y="462.5" width="112" height="80" class="chartlet-diagram-shadow"/><rect x="376" y="460" width="112" height="80" class="chartlet-flow-node chartlet-role-blue chartlet-class"><title>InvoiceLine</title></rect><text x="432" y="486" text-anchor="middle" class="chartlet-flow-label">InvoiceLine</text><line x1="376" y1="492" x2="488" y2="492" class="chartlet-flow-inner"/><text x="388" y="509" text-anchor="start" class="chartlet-class-member">+ quantity: Int</text><text x="388" y="524" text-anchor="start" class="chartlet-class-member">+ net: Money</text></g><g class="chartlet-f chartlet-n-4 chartlet-f-3 chartlet-f-4"><rect x="596" y="462.5" width="136" height="80" class="chartlet-diagram-shadow"/><rect x="596" y="460" width="136" height="80" class="chartlet-flow-node chartlet-role-blue chartlet-class"><title>TaxRate</title></rect><text x="664" y="486" text-anchor="middle" class="chartlet-flow-label">TaxRate</text><line x1="596" y1="492" x2="732" y2="492" class="chartlet-flow-inner"/><text x="608" y="509" text-anchor="start" class="chartlet-class-member">+ code: String</text><text x="608" y="524" text-anchor="start" class="chartlet-class-member">+ percent: Decimal</text></g><g class="chartlet-f chartlet-n-5 chartlet-f-2 chartlet-f-5"><rect x="392" y="662.5" width="112" height="80" class="chartlet-diagram-shadow"/><rect x="392" y="660" width="112" height="80" class="chartlet-flow-node chartlet-role-blue chartlet-class"><title>Reminder</title></rect><text x="448" y="686" text-anchor="middle" class="chartlet-flow-label">Reminder</text><line x1="392" y1="692" x2="504" y2="692" class="chartlet-flow-inner"/><text x="404" y="709" text-anchor="start" class="chartlet-class-member">+ level: Int</text><text x="404" y="724" text-anchor="start" class="chartlet-class-member">+ sentAt: Date</text></g></svg><label class="chartlet-hotspot" id="chartlet-6dde3ab5de8f2092-hs-0" for="chartlet-6dde3ab5de8f2092-focus-0"></label><label class="chartlet-hotspot" id="chartlet-6dde3ab5de8f2092-hs-1" for="chartlet-6dde3ab5de8f2092-focus-1"></label><label class="chartlet-hotspot" id="chartlet-6dde3ab5de8f2092-hs-2" for="chartlet-6dde3ab5de8f2092-focus-2"></label><label class="chartlet-hotspot" id="chartlet-6dde3ab5de8f2092-hs-3" for="chartlet-6dde3ab5de8f2092-focus-3"></label><label class="chartlet-hotspot" id="chartlet-6dde3ab5de8f2092-hs-4" for="chartlet-6dde3ab5de8f2092-focus-4"></label><label class="chartlet-hotspot" id="chartlet-6dde3ab5de8f2092-hs-5" for="chartlet-6dde3ab5de8f2092-focus-5"></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 Orders and their invoices</caption><thead><tr><th scope="col">Item</th><th scope="col">Kind</th><th scope="col">Package</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>Sales</td><td>+ id: Int; + name: String</td><td></td><td>is associated with Order (1 : 0..*) [places]</td></tr><tr><th scope="row">Order</th><td>Class</td><td>Sales</td><td>+ id: Int; + placedAt: Date</td><td>+ total(): Money</td><td>is associated with Invoice (1 : 1..*) [billed as]</td></tr><tr><th scope="row">Invoice</th><td>Class</td><td>Billing</td><td>+ number: String; + issuedAt: Date</td><td>+ total(): Money</td><td>is composed of InvoiceLine (1 : 1..*) [lists]; is associated with Reminder (1 : 0..3) [dunned by]</td></tr><tr><th scope="row">InvoiceLine</th><td>Class</td><td>Billing</td><td>+ quantity: Int; + net: Money</td><td></td><td>is associated with TaxRate (* : 1) [taxed at]</td></tr><tr><th scope="row">TaxRate</th><td>Class</td><td>Billing</td><td>+ code: String; + percent: Decimal</td><td></td><td></td></tr><tr><th scope="row">Reminder</th><td>Class</td><td></td><td>+ level: Int; + sentAt: Date</td><td></td><td></td></tr></tbody></table></details></figure></div>