Components Data display
Multi Chart
Compare several series as lines, areas, dots, grouped or stacked columns, a mixed chart, or separate panels.
Edition performance
Monthly copies by sales channel · January–June 2026
Retail
Direct
Wholesale
- Retail
- 1,460 copies
- Direct
- 1,180 copies
- Wholesale
- 1,200 copies
Data table6 rows
| Category | Retail | Direct | Wholesale |
|---|---|---|---|
| Jan | 740 copies | 540 copies | 800 copies |
| Feb | 980 copies | 610 copies | 850 copies |
| Mar | 880 copies | 820 copies | 1,020 copies |
| Apr | 1,190 copies | 780 copies | 970 copies |
| May | 1,100 copies | 1,010 copies | 1,160 copies |
| Jun | 1,460 copies | 1,180 copies | 1,200 copies |
Usage
Pass Labels in category order and a Series entry for each measure. Each series has a Name and a Values list aligned with Labels. Use the same unit for every series.
Register multi-chart with Head and pass its properties to Render. Go setup guide
Choosing a view
Pass a view name in Type to render it directly from Go. Set ShowTypes to true to let readers try all seven views with the same data.
combocombines columns and lines. The first series defaults to columns and subsequent series to lines. SetKindon each series to choose its marks.lineoverlays trends.areafills the space between each trend and zero, making changes in magnitude easier to see.columngroups columns side by side to compare their heights within a category.stackedadds contributions in each category. Its axis covers the combined values. Positive and negative contributions extend from zero in opposite directions. Use it for quantities that can be added, such as sales across channels.dotsshows individual observations without connecting them. It works for categories without a natural order.panelsgives each series its own line chart on the same scale. Try it when several lines overlap.
Comparing values
Select a series in the legend to change its visibility. The vertical scale stays fixed, even when a series is hidden. Hover or tap a category to compare its values. With the plot focused, use the arrow keys to step through categories or Home and End to jump to either end.
Use nil in a []any slice for a missing observation and 0 for a measured zero. Missing observations leave gaps in the line. The data table includes every series and is available with JavaScript disabled. For a single series with pie and donut views, see Chart.
Compare actuals with a target
err := mono.UI.Render(w, "multi-chart", mono.Props{
"Title": "Orders per week",
"Unit": "orders",
"Type": "combo",
"ShowTypes": true,
"Labels": []string{"Week 1", "Week 2", "Week 3"},
"Series": []mono.Props{
{"Name": "Actual", "Kind": "column", "Values": []int{42, 58, 51}},
{"Name": "Target", "Kind": "line", "Values": []int{50, 50, 55}},
},
})Compare series in separate panels
err := mono.UI.Render(w, "multi-chart", mono.Props{
"Title": "Monthly net growth",
"Unit": "members",
"Type": "panels",
"Labels": []string{"Jan", "Feb", "Mar", "Apr"},
"Series": []mono.Props{
{"Name": "Studio", "Values": []any{14, -3, nil, 18}},
{"Name": "Press", "Values": []int{7, 0, -1, 12}},
},
})Stack sales by channel
err := mono.UI.Render(w, "multi-chart", mono.Props{
"Title": "Quarterly print sales",
"Type": "stacked",
"Unit": "copies",
"Labels": []string{"Q1", "Q2", "Q3", "Q4"},
"Series": []mono.Props{
{"Name": "Bookshops", "Values": []int{460, 510, 720, 845}},
{"Name": "Online", "Values": []int{380, 490, 640, 740}},
},
})Go usage
err := mono.UI.Render(w, "multi-chart", mono.Props{
"Caption": "Monthly copies by sales channel · January–June 2026",
"Labels": []any{
"Jan",
"Feb",
"Mar",
"Apr",
"May",
"Jun",
},
"Series": []any{
map[string]any{
"Kind": "column",
"Name": "Retail",
"Values": []any{
740,
980,
880,
1190,
1100,
1460,
},
},
map[string]any{
"Kind": "column",
"Name": "Direct",
"Values": []any{
540,
610,
820,
780,
1010,
1180,
},
},
map[string]any{
"Kind": "line",
"Name": "Wholesale",
"Values": []any{
800,
850,
1020,
970,
1160,
1200,
},
},
},
"ShowTypes": true,
"Title": "Edition performance",
"Type": "combo",
"Unit": "copies",
})Rendered HTML
<figure id="demo-multi-chart" class="mu-multi-chart" data-mono="multi-chart" data-mc-display-mode="combo" aria-labelledby="demo-multi-chart-title">
<figcaption class="mc-mast">
<div><h2 id="demo-multi-chart-title">Edition performance</h2><p>Monthly copies by sales channel · January–June 2026</p></div>
<div class="mc-controls" data-mc-controls role="group" aria-label="Chart view" hidden><button type="button" data-mc-switch="combo" aria-pressed="true"><svg class="mc-icon" viewBox="0 0 20 20" width="16" height="16" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" focusable="false">
<path d="M3 16v-3h3v3zm5.5 0v-6h3v6zm5.5 0v-4h3v4z" fill="currentColor" stroke="none"/><path d="m2.5 9 5-5 4 2.5 6-4"/>
</svg>Combo</button><button type="button" data-mc-switch="line" aria-pressed="false"><svg class="mc-icon" viewBox="0 0 20 20" width="16" height="16" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" focusable="false">
<path d="m2 12 5-7 4 3 6-5M2 16l5-3 4 2 6-5"/>
</svg>Lines</button><button type="button" data-mc-switch="area" aria-pressed="false"><svg class="mc-icon" viewBox="0 0 20 20" width="16" height="16" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" focusable="false">
<path d="m2 14 4-7 4 3 7-7v13H2Z" fill="currentColor" fill-opacity=".18"/><path d="m2 14 4-7 4 3 7-7m-15 13 5-4 4 1 6-5"/>
</svg>Areas</button><button type="button" data-mc-switch="column" aria-pressed="false"><svg class="mc-icon" viewBox="0 0 20 20" width="16" height="16" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" focusable="false">
<path d="M3 17v-6h3v6zm5.5 0V7h3v10zm5.5 0V3h3v14z" fill="currentColor" stroke="none"/>
</svg>Columns</button><button type="button" data-mc-switch="stacked" aria-pressed="false"><svg class="mc-icon" viewBox="0 0 20 20" width="16" height="16" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" focusable="false">
<path d="M3 16.5v-12h5v12zm9 0v-15h5v15zM3 11h5m4-4h5"/>
</svg>Stacked</button><button type="button" data-mc-switch="dots" aria-pressed="false"><svg class="mc-icon" viewBox="0 0 20 20" width="16" height="16" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" focusable="false">
<g fill="currentColor" stroke="none"><circle cx="3.5" cy="13.5" r="1.7"/><circle cx="7.5" cy="7" r="1.7"/><circle cx="11.5" cy="10" r="1.7"/><circle cx="16" cy="4" r="1.7"/></g>
</svg>Dots</button><button type="button" data-mc-switch="panels" aria-pressed="false"><svg class="mc-icon" viewBox="0 0 20 20" width="16" height="16" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" focusable="false">
<rect x="2.5" y="3.5" width="6" height="13" rx=".8"/><rect x="11.5" y="3.5" width="6" height="13" rx=".8"/>
</svg>Panels</button></div>
</figcaption>
<div class="mc-legend" role="group" aria-label="Chart series"><button type="button" disabled data-mc-toggle="0" data-tone="0" data-base-kind="column" aria-pressed="true"><span class="mc-swatch" aria-hidden="true"></span>Retail</button><button type="button" disabled data-mc-toggle="1" data-tone="1" data-base-kind="column" aria-pressed="true"><span class="mc-swatch" aria-hidden="true"></span>Direct</button><button type="button" disabled data-mc-toggle="2" data-tone="2" data-base-kind="line" aria-pressed="true"><span class="mc-swatch" aria-hidden="true"></span>Wholesale</button></div>
<div class="mc-body">
<div class="mc-graph">
<div class="mc-plot-head"><span>copies</span><button data-mc-replay class="mc-replay" type="button" hidden aria-label="Replay chart animation" title="Replay chart animation"><svg class="mc-icon" viewBox="0 0 20 20" width="16" height="16" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" focusable="false">
<path d="M3.4 8a6.8 6.8 0 1 1 .4 5M3.4 3.4V8H8"/>
</svg></button></div>
<div data-mc-stage><div data-mc-mode="combo" class="mc-plot" >
<div class="mc-axis-layout">
<div class="mc-axis-y" aria-hidden="true"><span style="--mc-y:200">0</span><span style="--mc-y:138.33">500</span><span style="--mc-y:76.67">1,000</span><span style="--mc-y:15">1,500</span></div>
<svg class="mc-canvas" width="566" height="201" viewBox="54 7 566 201" role="group" aria-label="Combo chart">
<defs><pattern id="demo-multi-chart-combo-stripe" width="5" height="5" patternUnits="userSpaceOnUse"><rect class="mc-pattern-base" width="5" height="5"/><path class="mc-pattern-line" d="m-1 1 2-2m-2 7 7-7m-2 7 2-2"/></pattern></defs>
<g class="mc-grid" aria-hidden="true">
<line x1="54" x2="620" y1="200" y2="200"/><line x1="54" x2="620" y1="138.33" y2="138.33"/><line x1="54" x2="620" y1="76.67" y2="76.67"/><line x1="54" x2="620" y1="15" y2="15"/>
<line class="mc-zero" x1="54" x2="620" y1="200" y2="200"/>
</g>
<g class="mc-guides" aria-hidden="true"><line data-mc-guide="0" x1="101.17" x2="101.17" y1="15" y2="200"/><line data-mc-guide="1" x1="195.5" x2="195.5" y1="15" y2="200"/><line data-mc-guide="2" x1="289.83" x2="289.83" y1="15" y2="200"/><line data-mc-guide="3" x1="384.17" x2="384.17" y1="15" y2="200"/><line data-mc-guide="4" x1="478.5" x2="478.5" y1="15" y2="200"/><line data-mc-guide="5" x1="572.83" x2="572.83" y1="15" y2="200"/></g>
<g class="mc-columns" aria-hidden="true" data-mc-series="0" data-tone="0">
<rect class="mc-column" data-mc-mark="0" x="67.27" y="108.73" width="32.9" height="91.27" rx="1" /><rect class="mc-column" data-mc-mark="1" x="161.6" y="79.13" width="32.9" height="120.87" rx="1" /><rect class="mc-column" data-mc-mark="2" x="255.93" y="91.47" width="32.9" height="108.53" rx="1" /><rect class="mc-column" data-mc-mark="3" x="350.27" y="53.23" width="32.9" height="146.77" rx="1" /><rect class="mc-column" data-mc-mark="4" x="444.6" y="64.33" width="32.9" height="135.67" rx="1" /><rect class="mc-column" data-mc-mark="5" x="538.93" y="19.93" width="32.9" height="180.07" rx="1" />
</g><g class="mc-columns" aria-hidden="true" data-mc-series="1" data-tone="1">
<rect class="mc-column" data-mc-mark="0" x="102.17" y="133.4" width="32.9" height="66.6" rx="1" fill="url(#demo-multi-chart-combo-stripe)"/><rect class="mc-column" data-mc-mark="1" x="196.5" y="124.77" width="32.9" height="75.23" rx="1" fill="url(#demo-multi-chart-combo-stripe)"/><rect class="mc-column" data-mc-mark="2" x="290.83" y="98.87" width="32.9" height="101.13" rx="1" fill="url(#demo-multi-chart-combo-stripe)"/><rect class="mc-column" data-mc-mark="3" x="385.17" y="103.8" width="32.9" height="96.2" rx="1" fill="url(#demo-multi-chart-combo-stripe)"/><rect class="mc-column" data-mc-mark="4" x="479.5" y="75.43" width="32.9" height="124.57" rx="1" fill="url(#demo-multi-chart-combo-stripe)"/><rect class="mc-column" data-mc-mark="5" x="573.83" y="54.47" width="32.9" height="145.53" rx="1" fill="url(#demo-multi-chart-combo-stripe)"/>
</g>
<g class="mc-line-series" data-tone="2" data-mc-series="2" aria-hidden="true">
<path class="mc-halo" d="M101.17 101.33L195.5 95.17L289.83 74.2L384.17 80.37L478.5 56.93L572.83 52"/><path class="mc-line" d="M101.17 101.33L195.5 95.17L289.83 74.2L384.17 80.37L478.5 56.93L572.83 52" fill="none"/>
<g class="mc-marker" data-mc-mark="0" transform="translate(101.17 101.33)">
<path d="m0-4.4 4.4 4.4L0 4.4-4.4 0Z"/>
</g><g class="mc-marker" data-mc-mark="1" transform="translate(195.5 95.17)">
<path d="m0-4.4 4.4 4.4L0 4.4-4.4 0Z"/>
</g><g class="mc-marker" data-mc-mark="2" transform="translate(289.83 74.2)">
<path d="m0-4.4 4.4 4.4L0 4.4-4.4 0Z"/>
</g><g class="mc-marker" data-mc-mark="3" transform="translate(384.17 80.37)">
<path d="m0-4.4 4.4 4.4L0 4.4-4.4 0Z"/>
</g><g class="mc-marker" data-mc-mark="4" transform="translate(478.5 56.93)">
<path d="m0-4.4 4.4 4.4L0 4.4-4.4 0Z"/>
</g><g class="mc-marker" data-mc-mark="5" transform="translate(572.83 52)">
<path d="m0-4.4 4.4 4.4L0 4.4-4.4 0Z"/>
</g>
</g>
<rect class="mc-hit" data-mc-point="0" x="54" y="11" width="94.33" height="194" fill="transparent" role="img" aria-label="Jan"/><rect class="mc-hit" data-mc-point="1" x="148.33" y="11" width="94.34" height="194" fill="transparent" role="img" aria-label="Feb"/><rect class="mc-hit" data-mc-point="2" x="242.67" y="11" width="94.33" height="194" fill="transparent" role="img" aria-label="Mar"/><rect class="mc-hit" data-mc-point="3" x="337" y="11" width="94.33" height="194" fill="transparent" role="img" aria-label="Apr"/><rect class="mc-hit" data-mc-point="4" x="431.33" y="11" width="94.34" height="194" fill="transparent" role="img" aria-label="May"/><rect class="mc-hit" data-mc-point="5" x="525.67" y="11" width="94.33" height="194" fill="transparent" role="img" aria-label="Jun"/>
</svg>
<div class="mc-axis-x" style="--mc-labels:6" aria-hidden="true"><span title="Jan" style="--mc-x:101.17">Jan</span><span title="Feb" style="--mc-x:195.5">Feb</span><span title="Mar" style="--mc-x:289.83">Mar</span><span title="Apr" style="--mc-x:384.17">Apr</span><span title="May" style="--mc-x:478.5">May</span><span title="Jun" style="--mc-x:572.83">Jun</span></div>
</div>
</div></div>
<template data-mc-template="line"><div data-mc-mode="line" class="mc-plot" >
<div class="mc-axis-layout">
<div class="mc-axis-y" aria-hidden="true"><span style="--mc-y:200">0</span><span style="--mc-y:138.33">500</span><span style="--mc-y:76.67">1,000</span><span style="--mc-y:15">1,500</span></div>
<svg class="mc-canvas" width="566" height="201" viewBox="54 7 566 201" role="group" aria-label="Lines chart">
<g class="mc-grid" aria-hidden="true">
<line x1="54" x2="620" y1="200" y2="200"/><line x1="54" x2="620" y1="138.33" y2="138.33"/><line x1="54" x2="620" y1="76.67" y2="76.67"/><line x1="54" x2="620" y1="15" y2="15"/>
<line class="mc-zero" x1="54" x2="620" y1="200" y2="200"/>
</g>
<g class="mc-guides" aria-hidden="true"><line data-mc-guide="0" x1="101.17" x2="101.17" y1="15" y2="200"/><line data-mc-guide="1" x1="195.5" x2="195.5" y1="15" y2="200"/><line data-mc-guide="2" x1="289.83" x2="289.83" y1="15" y2="200"/><line data-mc-guide="3" x1="384.17" x2="384.17" y1="15" y2="200"/><line data-mc-guide="4" x1="478.5" x2="478.5" y1="15" y2="200"/><line data-mc-guide="5" x1="572.83" x2="572.83" y1="15" y2="200"/></g>
<g class="mc-line-series" data-tone="0" data-mc-series="0" aria-hidden="true">
<path class="mc-halo" d="M101.17 108.73L195.5 79.13L289.83 91.47L384.17 53.23L478.5 64.33L572.83 19.93"/><path class="mc-line" d="M101.17 108.73L195.5 79.13L289.83 91.47L384.17 53.23L478.5 64.33L572.83 19.93" fill="none"/>
<g class="mc-marker" data-mc-mark="0" transform="translate(101.17 108.73)">
<circle r="3.7"/>
</g><g class="mc-marker" data-mc-mark="1" transform="translate(195.5 79.13)">
<circle r="3.7"/>
</g><g class="mc-marker" data-mc-mark="2" transform="translate(289.83 91.47)">
<circle r="3.7"/>
</g><g class="mc-marker" data-mc-mark="3" transform="translate(384.17 53.23)">
<circle r="3.7"/>
</g><g class="mc-marker" data-mc-mark="4" transform="translate(478.5 64.33)">
<circle r="3.7"/>
</g><g class="mc-marker" data-mc-mark="5" transform="translate(572.83 19.93)">
<circle r="3.7"/>
</g>
</g><g class="mc-line-series" data-tone="1" data-mc-series="1" aria-hidden="true">
<path class="mc-halo" d="M101.17 133.4L195.5 124.77L289.83 98.87L384.17 103.8L478.5 75.43L572.83 54.47"/><path class="mc-line" d="M101.17 133.4L195.5 124.77L289.83 98.87L384.17 103.8L478.5 75.43L572.83 54.47" fill="none"/>
<g class="mc-marker" data-mc-mark="0" transform="translate(101.17 133.4)">
<rect x="-3.4" y="-3.4" width="6.8" height="6.8"/>
</g><g class="mc-marker" data-mc-mark="1" transform="translate(195.5 124.77)">
<rect x="-3.4" y="-3.4" width="6.8" height="6.8"/>
</g><g class="mc-marker" data-mc-mark="2" transform="translate(289.83 98.87)">
<rect x="-3.4" y="-3.4" width="6.8" height="6.8"/>
</g><g class="mc-marker" data-mc-mark="3" transform="translate(384.17 103.8)">
<rect x="-3.4" y="-3.4" width="6.8" height="6.8"/>
</g><g class="mc-marker" data-mc-mark="4" transform="translate(478.5 75.43)">
<rect x="-3.4" y="-3.4" width="6.8" height="6.8"/>
</g><g class="mc-marker" data-mc-mark="5" transform="translate(572.83 54.47)">
<rect x="-3.4" y="-3.4" width="6.8" height="6.8"/>
</g>
</g><g class="mc-line-series" data-tone="2" data-mc-series="2" aria-hidden="true">
<path class="mc-halo" d="M101.17 101.33L195.5 95.17L289.83 74.2L384.17 80.37L478.5 56.93L572.83 52"/><path class="mc-line" d="M101.17 101.33L195.5 95.17L289.83 74.2L384.17 80.37L478.5 56.93L572.83 52" fill="none"/>
<g class="mc-marker" data-mc-mark="0" transform="translate(101.17 101.33)">
<path d="m0-4.4 4.4 4.4L0 4.4-4.4 0Z"/>
</g><g class="mc-marker" data-mc-mark="1" transform="translate(195.5 95.17)">
<path d="m0-4.4 4.4 4.4L0 4.4-4.4 0Z"/>
</g><g class="mc-marker" data-mc-mark="2" transform="translate(289.83 74.2)">
<path d="m0-4.4 4.4 4.4L0 4.4-4.4 0Z"/>
</g><g class="mc-marker" data-mc-mark="3" transform="translate(384.17 80.37)">
<path d="m0-4.4 4.4 4.4L0 4.4-4.4 0Z"/>
</g><g class="mc-marker" data-mc-mark="4" transform="translate(478.5 56.93)">
<path d="m0-4.4 4.4 4.4L0 4.4-4.4 0Z"/>
</g><g class="mc-marker" data-mc-mark="5" transform="translate(572.83 52)">
<path d="m0-4.4 4.4 4.4L0 4.4-4.4 0Z"/>
</g>
</g>
<rect class="mc-hit" data-mc-point="0" x="54" y="11" width="94.33" height="194" fill="transparent" role="img" aria-label="Jan"/><rect class="mc-hit" data-mc-point="1" x="148.33" y="11" width="94.34" height="194" fill="transparent" role="img" aria-label="Feb"/><rect class="mc-hit" data-mc-point="2" x="242.67" y="11" width="94.33" height="194" fill="transparent" role="img" aria-label="Mar"/><rect class="mc-hit" data-mc-point="3" x="337" y="11" width="94.33" height="194" fill="transparent" role="img" aria-label="Apr"/><rect class="mc-hit" data-mc-point="4" x="431.33" y="11" width="94.34" height="194" fill="transparent" role="img" aria-label="May"/><rect class="mc-hit" data-mc-point="5" x="525.67" y="11" width="94.33" height="194" fill="transparent" role="img" aria-label="Jun"/>
</svg>
<div class="mc-axis-x" style="--mc-labels:6" aria-hidden="true"><span title="Jan" style="--mc-x:101.17">Jan</span><span title="Feb" style="--mc-x:195.5">Feb</span><span title="Mar" style="--mc-x:289.83">Mar</span><span title="Apr" style="--mc-x:384.17">Apr</span><span title="May" style="--mc-x:478.5">May</span><span title="Jun" style="--mc-x:572.83">Jun</span></div>
</div>
</div></template><template data-mc-template="area"><div data-mc-mode="area" class="mc-plot" >
<div class="mc-axis-layout">
<div class="mc-axis-y" aria-hidden="true"><span style="--mc-y:200">0</span><span style="--mc-y:138.33">500</span><span style="--mc-y:76.67">1,000</span><span style="--mc-y:15">1,500</span></div>
<svg class="mc-canvas" width="566" height="201" viewBox="54 7 566 201" role="group" aria-label="Areas chart">
<defs><pattern id="demo-multi-chart-area-stripe" width="5" height="5" patternUnits="userSpaceOnUse"><rect class="mc-pattern-base" width="5" height="5"/><path class="mc-pattern-line" d="m-1 1 2-2m-2 7 7-7m-2 7 2-2"/></pattern></defs>
<g class="mc-grid" aria-hidden="true">
<line x1="54" x2="620" y1="200" y2="200"/><line x1="54" x2="620" y1="138.33" y2="138.33"/><line x1="54" x2="620" y1="76.67" y2="76.67"/><line x1="54" x2="620" y1="15" y2="15"/>
<line class="mc-zero" x1="54" x2="620" y1="200" y2="200"/>
</g>
<g class="mc-guides" aria-hidden="true"><line data-mc-guide="0" x1="101.17" x2="101.17" y1="15" y2="200"/><line data-mc-guide="1" x1="195.5" x2="195.5" y1="15" y2="200"/><line data-mc-guide="2" x1="289.83" x2="289.83" y1="15" y2="200"/><line data-mc-guide="3" x1="384.17" x2="384.17" y1="15" y2="200"/><line data-mc-guide="4" x1="478.5" x2="478.5" y1="15" y2="200"/><line data-mc-guide="5" x1="572.83" x2="572.83" y1="15" y2="200"/></g>
<path class="mc-area" d="M101.17 200L101.17 108.73L195.5 79.13L289.83 91.47L384.17 53.23L478.5 64.33L572.83 19.93L572.83 200Z" data-mc-series="0" data-tone="0" aria-hidden="true"/><path class="mc-area" d="M101.17 200L101.17 133.4L195.5 124.77L289.83 98.87L384.17 103.8L478.5 75.43L572.83 54.47L572.83 200Z" fill="url(#demo-multi-chart-area-stripe)" data-mc-series="1" data-tone="1" aria-hidden="true"/><path class="mc-area" d="M101.17 200L101.17 101.33L195.5 95.17L289.83 74.2L384.17 80.37L478.5 56.93L572.83 52L572.83 200Z" data-mc-series="2" data-tone="2" aria-hidden="true"/>
<g class="mc-line-series" data-tone="0" data-mc-series="0" aria-hidden="true">
<path class="mc-halo" d="M101.17 108.73L195.5 79.13L289.83 91.47L384.17 53.23L478.5 64.33L572.83 19.93"/><path class="mc-line" d="M101.17 108.73L195.5 79.13L289.83 91.47L384.17 53.23L478.5 64.33L572.83 19.93" fill="none"/>
<g class="mc-marker" data-mc-mark="0" transform="translate(101.17 108.73)">
<circle r="3.7"/>
</g><g class="mc-marker" data-mc-mark="1" transform="translate(195.5 79.13)">
<circle r="3.7"/>
</g><g class="mc-marker" data-mc-mark="2" transform="translate(289.83 91.47)">
<circle r="3.7"/>
</g><g class="mc-marker" data-mc-mark="3" transform="translate(384.17 53.23)">
<circle r="3.7"/>
</g><g class="mc-marker" data-mc-mark="4" transform="translate(478.5 64.33)">
<circle r="3.7"/>
</g><g class="mc-marker" data-mc-mark="5" transform="translate(572.83 19.93)">
<circle r="3.7"/>
</g>
</g><g class="mc-line-series" data-tone="1" data-mc-series="1" aria-hidden="true">
<path class="mc-halo" d="M101.17 133.4L195.5 124.77L289.83 98.87L384.17 103.8L478.5 75.43L572.83 54.47"/><path class="mc-line" d="M101.17 133.4L195.5 124.77L289.83 98.87L384.17 103.8L478.5 75.43L572.83 54.47" fill="none"/>
<g class="mc-marker" data-mc-mark="0" transform="translate(101.17 133.4)">
<rect x="-3.4" y="-3.4" width="6.8" height="6.8"/>
</g><g class="mc-marker" data-mc-mark="1" transform="translate(195.5 124.77)">
<rect x="-3.4" y="-3.4" width="6.8" height="6.8"/>
</g><g class="mc-marker" data-mc-mark="2" transform="translate(289.83 98.87)">
<rect x="-3.4" y="-3.4" width="6.8" height="6.8"/>
</g><g class="mc-marker" data-mc-mark="3" transform="translate(384.17 103.8)">
<rect x="-3.4" y="-3.4" width="6.8" height="6.8"/>
</g><g class="mc-marker" data-mc-mark="4" transform="translate(478.5 75.43)">
<rect x="-3.4" y="-3.4" width="6.8" height="6.8"/>
</g><g class="mc-marker" data-mc-mark="5" transform="translate(572.83 54.47)">
<rect x="-3.4" y="-3.4" width="6.8" height="6.8"/>
</g>
</g><g class="mc-line-series" data-tone="2" data-mc-series="2" aria-hidden="true">
<path class="mc-halo" d="M101.17 101.33L195.5 95.17L289.83 74.2L384.17 80.37L478.5 56.93L572.83 52"/><path class="mc-line" d="M101.17 101.33L195.5 95.17L289.83 74.2L384.17 80.37L478.5 56.93L572.83 52" fill="none"/>
<g class="mc-marker" data-mc-mark="0" transform="translate(101.17 101.33)">
<path d="m0-4.4 4.4 4.4L0 4.4-4.4 0Z"/>
</g><g class="mc-marker" data-mc-mark="1" transform="translate(195.5 95.17)">
<path d="m0-4.4 4.4 4.4L0 4.4-4.4 0Z"/>
</g><g class="mc-marker" data-mc-mark="2" transform="translate(289.83 74.2)">
<path d="m0-4.4 4.4 4.4L0 4.4-4.4 0Z"/>
</g><g class="mc-marker" data-mc-mark="3" transform="translate(384.17 80.37)">
<path d="m0-4.4 4.4 4.4L0 4.4-4.4 0Z"/>
</g><g class="mc-marker" data-mc-mark="4" transform="translate(478.5 56.93)">
<path d="m0-4.4 4.4 4.4L0 4.4-4.4 0Z"/>
</g><g class="mc-marker" data-mc-mark="5" transform="translate(572.83 52)">
<path d="m0-4.4 4.4 4.4L0 4.4-4.4 0Z"/>
</g>
</g>
<rect class="mc-hit" data-mc-point="0" x="54" y="11" width="94.33" height="194" fill="transparent" role="img" aria-label="Jan"/><rect class="mc-hit" data-mc-point="1" x="148.33" y="11" width="94.34" height="194" fill="transparent" role="img" aria-label="Feb"/><rect class="mc-hit" data-mc-point="2" x="242.67" y="11" width="94.33" height="194" fill="transparent" role="img" aria-label="Mar"/><rect class="mc-hit" data-mc-point="3" x="337" y="11" width="94.33" height="194" fill="transparent" role="img" aria-label="Apr"/><rect class="mc-hit" data-mc-point="4" x="431.33" y="11" width="94.34" height="194" fill="transparent" role="img" aria-label="May"/><rect class="mc-hit" data-mc-point="5" x="525.67" y="11" width="94.33" height="194" fill="transparent" role="img" aria-label="Jun"/>
</svg>
<div class="mc-axis-x" style="--mc-labels:6" aria-hidden="true"><span title="Jan" style="--mc-x:101.17">Jan</span><span title="Feb" style="--mc-x:195.5">Feb</span><span title="Mar" style="--mc-x:289.83">Mar</span><span title="Apr" style="--mc-x:384.17">Apr</span><span title="May" style="--mc-x:478.5">May</span><span title="Jun" style="--mc-x:572.83">Jun</span></div>
</div>
</div></template><template data-mc-template="column"><div data-mc-mode="column" class="mc-plot" >
<div class="mc-axis-layout">
<div class="mc-axis-y" aria-hidden="true"><span style="--mc-y:200">0</span><span style="--mc-y:138.33">500</span><span style="--mc-y:76.67">1,000</span><span style="--mc-y:15">1,500</span></div>
<svg class="mc-canvas" width="566" height="201" viewBox="54 7 566 201" role="group" aria-label="Columns chart">
<defs><pattern id="demo-multi-chart-column-stripe" width="5" height="5" patternUnits="userSpaceOnUse"><rect class="mc-pattern-base" width="5" height="5"/><path class="mc-pattern-line" d="m-1 1 2-2m-2 7 7-7m-2 7 2-2"/></pattern></defs>
<g class="mc-grid" aria-hidden="true">
<line x1="54" x2="620" y1="200" y2="200"/><line x1="54" x2="620" y1="138.33" y2="138.33"/><line x1="54" x2="620" y1="76.67" y2="76.67"/><line x1="54" x2="620" y1="15" y2="15"/>
<line class="mc-zero" x1="54" x2="620" y1="200" y2="200"/>
</g>
<g class="mc-guides" aria-hidden="true"><line data-mc-guide="0" x1="101.17" x2="101.17" y1="15" y2="200"/><line data-mc-guide="1" x1="195.5" x2="195.5" y1="15" y2="200"/><line data-mc-guide="2" x1="289.83" x2="289.83" y1="15" y2="200"/><line data-mc-guide="3" x1="384.17" x2="384.17" y1="15" y2="200"/><line data-mc-guide="4" x1="478.5" x2="478.5" y1="15" y2="200"/><line data-mc-guide="5" x1="572.83" x2="572.83" y1="15" y2="200"/></g>
<g class="mc-columns" aria-hidden="true" data-mc-series="0" data-tone="0">
<rect class="mc-column" data-mc-mark="0" x="67.27" y="108.73" width="21.27" height="91.27" rx="1" /><rect class="mc-column" data-mc-mark="1" x="161.6" y="79.13" width="21.27" height="120.87" rx="1" /><rect class="mc-column" data-mc-mark="2" x="255.93" y="91.47" width="21.27" height="108.53" rx="1" /><rect class="mc-column" data-mc-mark="3" x="350.27" y="53.23" width="21.27" height="146.77" rx="1" /><rect class="mc-column" data-mc-mark="4" x="444.6" y="64.33" width="21.27" height="135.67" rx="1" /><rect class="mc-column" data-mc-mark="5" x="538.93" y="19.93" width="21.27" height="180.07" rx="1" />
</g><g class="mc-columns" aria-hidden="true" data-mc-series="1" data-tone="1">
<rect class="mc-column" data-mc-mark="0" x="90.54" y="133.4" width="21.27" height="66.6" rx="1" fill="url(#demo-multi-chart-column-stripe)"/><rect class="mc-column" data-mc-mark="1" x="184.87" y="124.77" width="21.27" height="75.23" rx="1" fill="url(#demo-multi-chart-column-stripe)"/><rect class="mc-column" data-mc-mark="2" x="279.2" y="98.87" width="21.27" height="101.13" rx="1" fill="url(#demo-multi-chart-column-stripe)"/><rect class="mc-column" data-mc-mark="3" x="373.54" y="103.8" width="21.27" height="96.2" rx="1" fill="url(#demo-multi-chart-column-stripe)"/><rect class="mc-column" data-mc-mark="4" x="467.87" y="75.43" width="21.27" height="124.57" rx="1" fill="url(#demo-multi-chart-column-stripe)"/><rect class="mc-column" data-mc-mark="5" x="562.2" y="54.47" width="21.27" height="145.53" rx="1" fill="url(#demo-multi-chart-column-stripe)"/>
</g><g class="mc-columns" aria-hidden="true" data-mc-series="2" data-tone="2">
<rect class="mc-column" data-mc-mark="0" x="113.8" y="101.33" width="21.27" height="98.67" rx="1" /><rect class="mc-column" data-mc-mark="1" x="208.13" y="95.17" width="21.27" height="104.83" rx="1" /><rect class="mc-column" data-mc-mark="2" x="302.46" y="74.2" width="21.27" height="125.8" rx="1" /><rect class="mc-column" data-mc-mark="3" x="396.8" y="80.37" width="21.27" height="119.63" rx="1" /><rect class="mc-column" data-mc-mark="4" x="491.13" y="56.93" width="21.27" height="143.07" rx="1" /><rect class="mc-column" data-mc-mark="5" x="585.46" y="52" width="21.27" height="148" rx="1" />
</g>
<rect class="mc-hit" data-mc-point="0" x="54" y="11" width="94.33" height="194" fill="transparent" role="img" aria-label="Jan"/><rect class="mc-hit" data-mc-point="1" x="148.33" y="11" width="94.34" height="194" fill="transparent" role="img" aria-label="Feb"/><rect class="mc-hit" data-mc-point="2" x="242.67" y="11" width="94.33" height="194" fill="transparent" role="img" aria-label="Mar"/><rect class="mc-hit" data-mc-point="3" x="337" y="11" width="94.33" height="194" fill="transparent" role="img" aria-label="Apr"/><rect class="mc-hit" data-mc-point="4" x="431.33" y="11" width="94.34" height="194" fill="transparent" role="img" aria-label="May"/><rect class="mc-hit" data-mc-point="5" x="525.67" y="11" width="94.33" height="194" fill="transparent" role="img" aria-label="Jun"/>
</svg>
<div class="mc-axis-x" style="--mc-labels:6" aria-hidden="true"><span title="Jan" style="--mc-x:101.17">Jan</span><span title="Feb" style="--mc-x:195.5">Feb</span><span title="Mar" style="--mc-x:289.83">Mar</span><span title="Apr" style="--mc-x:384.17">Apr</span><span title="May" style="--mc-x:478.5">May</span><span title="Jun" style="--mc-x:572.83">Jun</span></div>
</div>
</div></template><template data-mc-template="stacked"><div data-mc-mode="stacked" class="mc-plot" data-mc-zero="200">
<div class="mc-axis-layout">
<div class="mc-axis-y" aria-hidden="true"><span style="--mc-y:200">0</span><span style="--mc-y:153.75">1,000</span><span style="--mc-y:107.5">2,000</span><span style="--mc-y:61.25">3,000</span><span style="--mc-y:15">4,000</span></div>
<svg class="mc-canvas" width="566" height="201" viewBox="54 7 566 201" role="group" aria-label="Stacked chart">
<defs><pattern id="demo-multi-chart-stacked-stripe" width="5" height="5" patternUnits="userSpaceOnUse"><rect class="mc-pattern-base" width="5" height="5"/><path class="mc-pattern-line" d="m-1 1 2-2m-2 7 7-7m-2 7 2-2"/></pattern></defs>
<g class="mc-grid" aria-hidden="true">
<line x1="54" x2="620" y1="200" y2="200"/><line x1="54" x2="620" y1="153.75" y2="153.75"/><line x1="54" x2="620" y1="107.5" y2="107.5"/><line x1="54" x2="620" y1="61.25" y2="61.25"/><line x1="54" x2="620" y1="15" y2="15"/>
<line class="mc-zero" x1="54" x2="620" y1="200" y2="200"/>
</g>
<g class="mc-guides" aria-hidden="true"><line data-mc-guide="0" x1="101.17" x2="101.17" y1="15" y2="200"/><line data-mc-guide="1" x1="195.5" x2="195.5" y1="15" y2="200"/><line data-mc-guide="2" x1="289.83" x2="289.83" y1="15" y2="200"/><line data-mc-guide="3" x1="384.17" x2="384.17" y1="15" y2="200"/><line data-mc-guide="4" x1="478.5" x2="478.5" y1="15" y2="200"/><line data-mc-guide="5" x1="572.83" x2="572.83" y1="15" y2="200"/></g>
<g class="mc-columns" aria-hidden="true" data-mc-series="0" data-tone="0">
<rect class="mc-column" data-mc-mark="0" x="77.17" y="165.78" width="48" height="34.22" rx="1" /><rect class="mc-column" data-mc-mark="1" x="171.5" y="154.68" width="48" height="45.32" rx="1" /><rect class="mc-column" data-mc-mark="2" x="265.83" y="159.3" width="48" height="40.7" rx="1" /><rect class="mc-column" data-mc-mark="3" x="360.17" y="144.96" width="48" height="55.04" rx="1" /><rect class="mc-column" data-mc-mark="4" x="454.5" y="149.13" width="48" height="50.87" rx="1" /><rect class="mc-column" data-mc-mark="5" x="548.83" y="132.48" width="48" height="67.52" rx="1" />
</g><g class="mc-columns" aria-hidden="true" data-mc-series="1" data-tone="1">
<rect class="mc-column" data-mc-mark="0" x="77.17" y="140.8" width="48" height="24.98" rx="1" fill="url(#demo-multi-chart-stacked-stripe)"/><rect class="mc-column" data-mc-mark="1" x="171.5" y="126.46" width="48" height="28.22" rx="1" fill="url(#demo-multi-chart-stacked-stripe)"/><rect class="mc-column" data-mc-mark="2" x="265.83" y="121.38" width="48" height="37.92" rx="1" fill="url(#demo-multi-chart-stacked-stripe)"/><rect class="mc-column" data-mc-mark="3" x="360.17" y="108.89" width="48" height="36.07" rx="1" fill="url(#demo-multi-chart-stacked-stripe)"/><rect class="mc-column" data-mc-mark="4" x="454.5" y="102.41" width="48" height="46.72" rx="1" fill="url(#demo-multi-chart-stacked-stripe)"/><rect class="mc-column" data-mc-mark="5" x="548.83" y="77.9" width="48" height="54.58" rx="1" fill="url(#demo-multi-chart-stacked-stripe)"/>
</g><g class="mc-columns" aria-hidden="true" data-mc-series="2" data-tone="2">
<rect class="mc-column" data-mc-mark="0" x="77.17" y="103.8" width="48" height="37" rx="1" /><rect class="mc-column" data-mc-mark="1" x="171.5" y="87.15" width="48" height="39.31" rx="1" /><rect class="mc-column" data-mc-mark="2" x="265.83" y="74.2" width="48" height="47.18" rx="1" /><rect class="mc-column" data-mc-mark="3" x="360.17" y="64.03" width="48" height="44.86" rx="1" /><rect class="mc-column" data-mc-mark="4" x="454.5" y="48.76" width="48" height="53.65" rx="1" /><rect class="mc-column" data-mc-mark="5" x="548.83" y="22.4" width="48" height="55.5" rx="1" />
</g>
<rect class="mc-hit" data-mc-point="0" x="54" y="11" width="94.33" height="194" fill="transparent" role="img" aria-label="Jan"/><rect class="mc-hit" data-mc-point="1" x="148.33" y="11" width="94.34" height="194" fill="transparent" role="img" aria-label="Feb"/><rect class="mc-hit" data-mc-point="2" x="242.67" y="11" width="94.33" height="194" fill="transparent" role="img" aria-label="Mar"/><rect class="mc-hit" data-mc-point="3" x="337" y="11" width="94.33" height="194" fill="transparent" role="img" aria-label="Apr"/><rect class="mc-hit" data-mc-point="4" x="431.33" y="11" width="94.34" height="194" fill="transparent" role="img" aria-label="May"/><rect class="mc-hit" data-mc-point="5" x="525.67" y="11" width="94.33" height="194" fill="transparent" role="img" aria-label="Jun"/>
</svg>
<div class="mc-axis-x" style="--mc-labels:6" aria-hidden="true"><span title="Jan" style="--mc-x:101.17">Jan</span><span title="Feb" style="--mc-x:195.5">Feb</span><span title="Mar" style="--mc-x:289.83">Mar</span><span title="Apr" style="--mc-x:384.17">Apr</span><span title="May" style="--mc-x:478.5">May</span><span title="Jun" style="--mc-x:572.83">Jun</span></div>
</div>
</div></template><template data-mc-template="dots"><div data-mc-mode="dots" class="mc-plot" >
<div class="mc-axis-layout">
<div class="mc-axis-y" aria-hidden="true"><span style="--mc-y:200">0</span><span style="--mc-y:138.33">500</span><span style="--mc-y:76.67">1,000</span><span style="--mc-y:15">1,500</span></div>
<svg class="mc-canvas" width="566" height="201" viewBox="54 7 566 201" role="group" aria-label="Dots chart">
<g class="mc-grid" aria-hidden="true">
<line x1="54" x2="620" y1="200" y2="200"/><line x1="54" x2="620" y1="138.33" y2="138.33"/><line x1="54" x2="620" y1="76.67" y2="76.67"/><line x1="54" x2="620" y1="15" y2="15"/>
<line class="mc-zero" x1="54" x2="620" y1="200" y2="200"/>
</g>
<g class="mc-guides" aria-hidden="true"><line data-mc-guide="0" x1="101.17" x2="101.17" y1="15" y2="200"/><line data-mc-guide="1" x1="195.5" x2="195.5" y1="15" y2="200"/><line data-mc-guide="2" x1="289.83" x2="289.83" y1="15" y2="200"/><line data-mc-guide="3" x1="384.17" x2="384.17" y1="15" y2="200"/><line data-mc-guide="4" x1="478.5" x2="478.5" y1="15" y2="200"/><line data-mc-guide="5" x1="572.83" x2="572.83" y1="15" y2="200"/></g>
<g class="mc-line-series" data-tone="0" data-mc-series="0" aria-hidden="true">
<g class="mc-marker" data-mc-mark="0" transform="translate(101.17 108.73)">
<circle r="3.7"/>
</g><g class="mc-marker" data-mc-mark="1" transform="translate(195.5 79.13)">
<circle r="3.7"/>
</g><g class="mc-marker" data-mc-mark="2" transform="translate(289.83 91.47)">
<circle r="3.7"/>
</g><g class="mc-marker" data-mc-mark="3" transform="translate(384.17 53.23)">
<circle r="3.7"/>
</g><g class="mc-marker" data-mc-mark="4" transform="translate(478.5 64.33)">
<circle r="3.7"/>
</g><g class="mc-marker" data-mc-mark="5" transform="translate(572.83 19.93)">
<circle r="3.7"/>
</g>
</g><g class="mc-line-series" data-tone="1" data-mc-series="1" aria-hidden="true">
<g class="mc-marker" data-mc-mark="0" transform="translate(101.17 133.4)">
<rect x="-3.4" y="-3.4" width="6.8" height="6.8"/>
</g><g class="mc-marker" data-mc-mark="1" transform="translate(195.5 124.77)">
<rect x="-3.4" y="-3.4" width="6.8" height="6.8"/>
</g><g class="mc-marker" data-mc-mark="2" transform="translate(289.83 98.87)">
<rect x="-3.4" y="-3.4" width="6.8" height="6.8"/>
</g><g class="mc-marker" data-mc-mark="3" transform="translate(384.17 103.8)">
<rect x="-3.4" y="-3.4" width="6.8" height="6.8"/>
</g><g class="mc-marker" data-mc-mark="4" transform="translate(478.5 75.43)">
<rect x="-3.4" y="-3.4" width="6.8" height="6.8"/>
</g><g class="mc-marker" data-mc-mark="5" transform="translate(572.83 54.47)">
<rect x="-3.4" y="-3.4" width="6.8" height="6.8"/>
</g>
</g><g class="mc-line-series" data-tone="2" data-mc-series="2" aria-hidden="true">
<g class="mc-marker" data-mc-mark="0" transform="translate(101.17 101.33)">
<path d="m0-4.4 4.4 4.4L0 4.4-4.4 0Z"/>
</g><g class="mc-marker" data-mc-mark="1" transform="translate(195.5 95.17)">
<path d="m0-4.4 4.4 4.4L0 4.4-4.4 0Z"/>
</g><g class="mc-marker" data-mc-mark="2" transform="translate(289.83 74.2)">
<path d="m0-4.4 4.4 4.4L0 4.4-4.4 0Z"/>
</g><g class="mc-marker" data-mc-mark="3" transform="translate(384.17 80.37)">
<path d="m0-4.4 4.4 4.4L0 4.4-4.4 0Z"/>
</g><g class="mc-marker" data-mc-mark="4" transform="translate(478.5 56.93)">
<path d="m0-4.4 4.4 4.4L0 4.4-4.4 0Z"/>
</g><g class="mc-marker" data-mc-mark="5" transform="translate(572.83 52)">
<path d="m0-4.4 4.4 4.4L0 4.4-4.4 0Z"/>
</g>
</g>
<rect class="mc-hit" data-mc-point="0" x="54" y="11" width="94.33" height="194" fill="transparent" role="img" aria-label="Jan"/><rect class="mc-hit" data-mc-point="1" x="148.33" y="11" width="94.34" height="194" fill="transparent" role="img" aria-label="Feb"/><rect class="mc-hit" data-mc-point="2" x="242.67" y="11" width="94.33" height="194" fill="transparent" role="img" aria-label="Mar"/><rect class="mc-hit" data-mc-point="3" x="337" y="11" width="94.33" height="194" fill="transparent" role="img" aria-label="Apr"/><rect class="mc-hit" data-mc-point="4" x="431.33" y="11" width="94.34" height="194" fill="transparent" role="img" aria-label="May"/><rect class="mc-hit" data-mc-point="5" x="525.67" y="11" width="94.33" height="194" fill="transparent" role="img" aria-label="Jun"/>
</svg>
<div class="mc-axis-x" style="--mc-labels:6" aria-hidden="true"><span title="Jan" style="--mc-x:101.17">Jan</span><span title="Feb" style="--mc-x:195.5">Feb</span><span title="Mar" style="--mc-x:289.83">Mar</span><span title="Apr" style="--mc-x:384.17">Apr</span><span title="May" style="--mc-x:478.5">May</span><span title="Jun" style="--mc-x:572.83">Jun</span></div>
</div>
</div></template><template data-mc-template="panels"><div data-mc-mode="panels" class="mc-plot" >
<section class="mc-panel" data-mc-series="0">
<h3>Retail</h3>
<div class="mc-axis-layout">
<div class="mc-axis-y" aria-hidden="true"><span style="--mc-y:200">0</span><span style="--mc-y:138.33">500</span><span style="--mc-y:76.67">1,000</span><span style="--mc-y:15">1,500</span></div>
<svg class="mc-canvas" width="566" height="201" viewBox="54 7 566 201" preserveAspectRatio="none" role="group" aria-label="Retail line chart">
<g class="mc-grid" aria-hidden="true">
<line x1="54" x2="620" y1="200" y2="200"/><line x1="54" x2="620" y1="138.33" y2="138.33"/><line x1="54" x2="620" y1="76.67" y2="76.67"/><line x1="54" x2="620" y1="15" y2="15"/>
<line class="mc-zero" x1="54" x2="620" y1="200" y2="200"/>
</g>
<g class="mc-guides" aria-hidden="true"><line data-mc-guide="0" x1="101.17" x2="101.17" y1="15" y2="200"/><line data-mc-guide="1" x1="195.5" x2="195.5" y1="15" y2="200"/><line data-mc-guide="2" x1="289.83" x2="289.83" y1="15" y2="200"/><line data-mc-guide="3" x1="384.17" x2="384.17" y1="15" y2="200"/><line data-mc-guide="4" x1="478.5" x2="478.5" y1="15" y2="200"/><line data-mc-guide="5" x1="572.83" x2="572.83" y1="15" y2="200"/></g><g class="mc-line-series" data-tone="0" data-mc-series="0" aria-hidden="true">
<path class="mc-halo" d="M101.17 108.73L195.5 79.13L289.83 91.47L384.17 53.23L478.5 64.33L572.83 19.93"/><path class="mc-line" d="M101.17 108.73L195.5 79.13L289.83 91.47L384.17 53.23L478.5 64.33L572.83 19.93" fill="none"/>
<g class="mc-marker" data-mc-mark="0" transform="translate(101.17 108.73)">
<circle r="3.7"/>
</g><g class="mc-marker" data-mc-mark="1" transform="translate(195.5 79.13)">
<circle r="3.7"/>
</g><g class="mc-marker" data-mc-mark="2" transform="translate(289.83 91.47)">
<circle r="3.7"/>
</g><g class="mc-marker" data-mc-mark="3" transform="translate(384.17 53.23)">
<circle r="3.7"/>
</g><g class="mc-marker" data-mc-mark="4" transform="translate(478.5 64.33)">
<circle r="3.7"/>
</g><g class="mc-marker" data-mc-mark="5" transform="translate(572.83 19.93)">
<circle r="3.7"/>
</g>
</g><rect class="mc-hit" data-mc-point="0" x="54" y="11" width="94.33" height="194" fill="transparent" role="img" aria-label="Jan"/><rect class="mc-hit" data-mc-point="1" x="148.33" y="11" width="94.34" height="194" fill="transparent" role="img" aria-label="Feb"/><rect class="mc-hit" data-mc-point="2" x="242.67" y="11" width="94.33" height="194" fill="transparent" role="img" aria-label="Mar"/><rect class="mc-hit" data-mc-point="3" x="337" y="11" width="94.33" height="194" fill="transparent" role="img" aria-label="Apr"/><rect class="mc-hit" data-mc-point="4" x="431.33" y="11" width="94.34" height="194" fill="transparent" role="img" aria-label="May"/><rect class="mc-hit" data-mc-point="5" x="525.67" y="11" width="94.33" height="194" fill="transparent" role="img" aria-label="Jun"/>
</svg>
<div class="mc-axis-x" style="--mc-labels:6" aria-hidden="true"><span title="Jan" style="--mc-x:101.17">Jan</span><span title="Feb" style="--mc-x:195.5">Feb</span><span title="Mar" style="--mc-x:289.83">Mar</span><span title="Apr" style="--mc-x:384.17">Apr</span><span title="May" style="--mc-x:478.5">May</span><span title="Jun" style="--mc-x:572.83">Jun</span></div>
</div>
</section><section class="mc-panel" data-mc-series="1">
<h3>Direct</h3>
<div class="mc-axis-layout">
<div class="mc-axis-y" aria-hidden="true"><span style="--mc-y:200">0</span><span style="--mc-y:138.33">500</span><span style="--mc-y:76.67">1,000</span><span style="--mc-y:15">1,500</span></div>
<svg class="mc-canvas" width="566" height="201" viewBox="54 7 566 201" preserveAspectRatio="none" role="group" aria-label="Direct line chart">
<g class="mc-grid" aria-hidden="true">
<line x1="54" x2="620" y1="200" y2="200"/><line x1="54" x2="620" y1="138.33" y2="138.33"/><line x1="54" x2="620" y1="76.67" y2="76.67"/><line x1="54" x2="620" y1="15" y2="15"/>
<line class="mc-zero" x1="54" x2="620" y1="200" y2="200"/>
</g>
<g class="mc-guides" aria-hidden="true"><line data-mc-guide="0" x1="101.17" x2="101.17" y1="15" y2="200"/><line data-mc-guide="1" x1="195.5" x2="195.5" y1="15" y2="200"/><line data-mc-guide="2" x1="289.83" x2="289.83" y1="15" y2="200"/><line data-mc-guide="3" x1="384.17" x2="384.17" y1="15" y2="200"/><line data-mc-guide="4" x1="478.5" x2="478.5" y1="15" y2="200"/><line data-mc-guide="5" x1="572.83" x2="572.83" y1="15" y2="200"/></g><g class="mc-line-series" data-tone="1" data-mc-series="1" aria-hidden="true">
<path class="mc-halo" d="M101.17 133.4L195.5 124.77L289.83 98.87L384.17 103.8L478.5 75.43L572.83 54.47"/><path class="mc-line" d="M101.17 133.4L195.5 124.77L289.83 98.87L384.17 103.8L478.5 75.43L572.83 54.47" fill="none"/>
<g class="mc-marker" data-mc-mark="0" transform="translate(101.17 133.4)">
<rect x="-3.4" y="-3.4" width="6.8" height="6.8"/>
</g><g class="mc-marker" data-mc-mark="1" transform="translate(195.5 124.77)">
<rect x="-3.4" y="-3.4" width="6.8" height="6.8"/>
</g><g class="mc-marker" data-mc-mark="2" transform="translate(289.83 98.87)">
<rect x="-3.4" y="-3.4" width="6.8" height="6.8"/>
</g><g class="mc-marker" data-mc-mark="3" transform="translate(384.17 103.8)">
<rect x="-3.4" y="-3.4" width="6.8" height="6.8"/>
</g><g class="mc-marker" data-mc-mark="4" transform="translate(478.5 75.43)">
<rect x="-3.4" y="-3.4" width="6.8" height="6.8"/>
</g><g class="mc-marker" data-mc-mark="5" transform="translate(572.83 54.47)">
<rect x="-3.4" y="-3.4" width="6.8" height="6.8"/>
</g>
</g><rect class="mc-hit" data-mc-point="0" x="54" y="11" width="94.33" height="194" fill="transparent" role="img" aria-label="Jan"/><rect class="mc-hit" data-mc-point="1" x="148.33" y="11" width="94.34" height="194" fill="transparent" role="img" aria-label="Feb"/><rect class="mc-hit" data-mc-point="2" x="242.67" y="11" width="94.33" height="194" fill="transparent" role="img" aria-label="Mar"/><rect class="mc-hit" data-mc-point="3" x="337" y="11" width="94.33" height="194" fill="transparent" role="img" aria-label="Apr"/><rect class="mc-hit" data-mc-point="4" x="431.33" y="11" width="94.34" height="194" fill="transparent" role="img" aria-label="May"/><rect class="mc-hit" data-mc-point="5" x="525.67" y="11" width="94.33" height="194" fill="transparent" role="img" aria-label="Jun"/>
</svg>
<div class="mc-axis-x" style="--mc-labels:6" aria-hidden="true"><span title="Jan" style="--mc-x:101.17">Jan</span><span title="Feb" style="--mc-x:195.5">Feb</span><span title="Mar" style="--mc-x:289.83">Mar</span><span title="Apr" style="--mc-x:384.17">Apr</span><span title="May" style="--mc-x:478.5">May</span><span title="Jun" style="--mc-x:572.83">Jun</span></div>
</div>
</section><section class="mc-panel" data-mc-series="2">
<h3>Wholesale</h3>
<div class="mc-axis-layout">
<div class="mc-axis-y" aria-hidden="true"><span style="--mc-y:200">0</span><span style="--mc-y:138.33">500</span><span style="--mc-y:76.67">1,000</span><span style="--mc-y:15">1,500</span></div>
<svg class="mc-canvas" width="566" height="201" viewBox="54 7 566 201" preserveAspectRatio="none" role="group" aria-label="Wholesale line chart">
<g class="mc-grid" aria-hidden="true">
<line x1="54" x2="620" y1="200" y2="200"/><line x1="54" x2="620" y1="138.33" y2="138.33"/><line x1="54" x2="620" y1="76.67" y2="76.67"/><line x1="54" x2="620" y1="15" y2="15"/>
<line class="mc-zero" x1="54" x2="620" y1="200" y2="200"/>
</g>
<g class="mc-guides" aria-hidden="true"><line data-mc-guide="0" x1="101.17" x2="101.17" y1="15" y2="200"/><line data-mc-guide="1" x1="195.5" x2="195.5" y1="15" y2="200"/><line data-mc-guide="2" x1="289.83" x2="289.83" y1="15" y2="200"/><line data-mc-guide="3" x1="384.17" x2="384.17" y1="15" y2="200"/><line data-mc-guide="4" x1="478.5" x2="478.5" y1="15" y2="200"/><line data-mc-guide="5" x1="572.83" x2="572.83" y1="15" y2="200"/></g><g class="mc-line-series" data-tone="2" data-mc-series="2" aria-hidden="true">
<path class="mc-halo" d="M101.17 101.33L195.5 95.17L289.83 74.2L384.17 80.37L478.5 56.93L572.83 52"/><path class="mc-line" d="M101.17 101.33L195.5 95.17L289.83 74.2L384.17 80.37L478.5 56.93L572.83 52" fill="none"/>
<g class="mc-marker" data-mc-mark="0" transform="translate(101.17 101.33)">
<path d="m0-4.4 4.4 4.4L0 4.4-4.4 0Z"/>
</g><g class="mc-marker" data-mc-mark="1" transform="translate(195.5 95.17)">
<path d="m0-4.4 4.4 4.4L0 4.4-4.4 0Z"/>
</g><g class="mc-marker" data-mc-mark="2" transform="translate(289.83 74.2)">
<path d="m0-4.4 4.4 4.4L0 4.4-4.4 0Z"/>
</g><g class="mc-marker" data-mc-mark="3" transform="translate(384.17 80.37)">
<path d="m0-4.4 4.4 4.4L0 4.4-4.4 0Z"/>
</g><g class="mc-marker" data-mc-mark="4" transform="translate(478.5 56.93)">
<path d="m0-4.4 4.4 4.4L0 4.4-4.4 0Z"/>
</g><g class="mc-marker" data-mc-mark="5" transform="translate(572.83 52)">
<path d="m0-4.4 4.4 4.4L0 4.4-4.4 0Z"/>
</g>
</g><rect class="mc-hit" data-mc-point="0" x="54" y="11" width="94.33" height="194" fill="transparent" role="img" aria-label="Jan"/><rect class="mc-hit" data-mc-point="1" x="148.33" y="11" width="94.34" height="194" fill="transparent" role="img" aria-label="Feb"/><rect class="mc-hit" data-mc-point="2" x="242.67" y="11" width="94.33" height="194" fill="transparent" role="img" aria-label="Mar"/><rect class="mc-hit" data-mc-point="3" x="337" y="11" width="94.33" height="194" fill="transparent" role="img" aria-label="Apr"/><rect class="mc-hit" data-mc-point="4" x="431.33" y="11" width="94.34" height="194" fill="transparent" role="img" aria-label="May"/><rect class="mc-hit" data-mc-point="5" x="525.67" y="11" width="94.33" height="194" fill="transparent" role="img" aria-label="Jun"/>
</svg>
<div class="mc-axis-x" style="--mc-labels:6" aria-hidden="true"><span title="Jan" style="--mc-x:101.17">Jan</span><span title="Feb" style="--mc-x:195.5">Feb</span><span title="Mar" style="--mc-x:289.83">Mar</span><span title="Apr" style="--mc-x:384.17">Apr</span><span title="May" style="--mc-x:478.5">May</span><span title="Jun" style="--mc-x:572.83">Jun</span></div>
</div>
</section>
</div></template>
</div>
<div class="mc-inspect" role="group" aria-label="Category breakdown">
<div class="mc-period"><span>Category</span><strong data-mc-period>Jun</strong></div>
<dl><div data-mc-series="0"><dt>Retail</dt><dd data-mc-value="0">1,460 copies</dd></div><div data-mc-series="1"><dt>Direct</dt><dd data-mc-value="1">1,180 copies</dd></div><div data-mc-series="2"><dt>Wholesale</dt><dd data-mc-value="2">1,200 copies</dd></div></dl>
</div>
</div>
<details class="mc-data">
<summary><svg class="mc-icon" viewBox="0 0 20 20" width="16" height="16" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" focusable="false">
<rect x="2.5" y="3" width="15" height="14" rx="2"/><path d="M3 8h14M8 8v8.5"/>
</svg><span>Data table</span><small>6 rows</small><svg class="mc-icon" viewBox="0 0 20 20" width="16" height="16" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" focusable="false">
<path d="m5 8 5 5 5-5"/>
</svg></summary>
<div class="mc-scroll"><table><caption class="mu-sr-only">Edition performance</caption><thead><tr><th scope="col">Category</th><th scope="col">Retail</th><th scope="col">Direct</th><th scope="col">Wholesale</th></tr></thead>
<tbody><tr data-mc-row="0"><th scope="row">Jan</th><td>740 copies</td><td>540 copies</td><td>800 copies</td></tr><tr data-mc-row="1"><th scope="row">Feb</th><td>980 copies</td><td>610 copies</td><td>850 copies</td></tr><tr data-mc-row="2"><th scope="row">Mar</th><td>880 copies</td><td>820 copies</td><td>1,020 copies</td></tr><tr data-mc-row="3"><th scope="row">Apr</th><td>1,190 copies</td><td>780 copies</td><td>970 copies</td></tr><tr data-mc-row="4"><th scope="row">May</th><td>1,100 copies</td><td>1,010 copies</td><td>1,160 copies</td></tr><tr data-mc-row="5"><th scope="row">Jun</th><td>1,460 copies</td><td>1,180 copies</td><td>1,200 copies</td></tr></tbody></table></div>
</details>
</figure>Go template
{{define "multi-chart-icon" -}}
<svg class="mc-icon" viewBox="0 0 20 20" width="16" height="16" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" focusable="false">
{{if eq . "combo"}}<path d="M3 16v-3h3v3zm5.5 0v-6h3v6zm5.5 0v-4h3v4z" fill="currentColor" stroke="none"/><path d="m2.5 9 5-5 4 2.5 6-4"/>
{{else if eq . "line"}}<path d="m2 12 5-7 4 3 6-5M2 16l5-3 4 2 6-5"/>
{{else if eq . "column"}}<path d="M3 17v-6h3v6zm5.5 0V7h3v10zm5.5 0V3h3v14z" fill="currentColor" stroke="none"/>
{{else if eq . "panels"}}<rect x="2.5" y="3.5" width="6" height="13" rx=".8"/><rect x="11.5" y="3.5" width="6" height="13" rx=".8"/>
{{else if eq . "stacked"}}<path d="M3 16.5v-12h5v12zm9 0v-15h5v15zM3 11h5m4-4h5"/>
{{else if eq . "area"}}<path d="m2 14 4-7 4 3 7-7v13H2Z" fill="currentColor" fill-opacity=".18"/><path d="m2 14 4-7 4 3 7-7m-15 13 5-4 4 1 6-5"/>
{{else if eq . "dots"}}<g fill="currentColor" stroke="none"><circle cx="3.5" cy="13.5" r="1.7"/><circle cx="7.5" cy="7" r="1.7"/><circle cx="11.5" cy="10" r="1.7"/><circle cx="16" cy="4" r="1.7"/></g>
{{else if eq . "replay"}}<path d="M3.4 8a6.8 6.8 0 1 1 .4 5M3.4 3.4V8H8"/>
{{else if eq . "table"}}<rect x="2.5" y="3" width="15" height="14" rx="2"/><path d="M3 8h14M8 8v8.5"/>
{{else if eq . "chevron"}}<path d="m5 8 5 5 5-5"/>
{{end}}
</svg>
{{- end}}
{{define "multi-chart-y-labels" -}}
<div class="mc-axis-y" aria-hidden="true">{{range .Ticks}}<span style="--mc-y:{{.Y}}">{{.Label}}</span>{{end}}</div>
{{- end}}
{{define "multi-chart-x-labels" -}}
<div class="mc-axis-x" style="--mc-labels:{{len .Rows}}" {{if gt (len .Rows) 7}}data-dense{{end}} aria-hidden="true">{{range .Rows}}{{if .AxisLabel}}<span title="{{.Label}}" style="--mc-x:{{.X}}">{{.AxisLabel}}</span>{{end}}{{end}}</div>
{{- end}}
{{define "multi-chart-axes" -}}
<g class="mc-grid" aria-hidden="true">
{{range .Ticks}}<line x1="54" x2="620" y1="{{.Y}}" y2="{{.Y}}"/>{{end}}
<line class="mc-zero" x1="54" x2="620" y1="{{.ZeroY}}" y2="{{.ZeroY}}"/>
</g>
<g class="mc-guides" aria-hidden="true">{{range .Rows}}<line data-mc-guide="{{.Index}}" x1="{{.X}}" x2="{{.X}}" y1="15" y2="200"/>{{end}}</g>
{{- end}}
{{define "multi-chart-hits" -}}
{{range .Rows}}<rect class="mc-hit" data-mc-point="{{.Index}}" x="{{.HitX}}" y="11" width="{{.HitWidth}}" height="194" fill="transparent" role="img" aria-label="{{.Label}}"/>{{end}}
{{- end}}
{{define "multi-chart-line" -}}
<g class="mc-line-series" data-tone="{{.Tone}}" data-mc-series="{{.Index}}" aria-hidden="true">
{{if ne .Kind "dots"}}<path class="mc-halo" d="{{.Path}}"/><path class="mc-line" d="{{.Path}}" fill="none"/>{{end}}
{{range .Points}}<g class="mc-marker" data-mc-mark="{{.Index}}" transform="translate({{.X}} {{.Y}})">
{{if or (eq $.Tone 1) (eq $.Tone 4)}}<rect x="-3.4" y="-3.4" width="6.8" height="6.8"/>
{{else if or (eq $.Tone 2) (eq $.Tone 5)}}<path d="m0-4.4 4.4 4.4L0 4.4-4.4 0Z"/>
{{else}}<circle r="3.7"/>{{end}}
</g>{{end}}
</g>
{{- end}}
{{define "multi-chart-plot" -}}
<div data-mc-mode="{{.Type}}" class="mc-plot" {{if eq .Type "stacked"}}data-mc-zero="{{.ZeroY}}"{{end}}>
{{if eq .Type "panels"}}
{{range .Series}}<section class="mc-panel" data-mc-series="{{.Index}}">
<h3>{{.Name}}</h3>
<div class="mc-axis-layout">
{{template "multi-chart-y-labels" $}}
<svg class="mc-canvas" width="566" height="201" viewBox="54 7 566 201" preserveAspectRatio="none" role="group" aria-label="{{.Name}} line chart">
{{template "multi-chart-axes" $}}{{template "multi-chart-line" .}}{{template "multi-chart-hits" $}}
</svg>
{{template "multi-chart-x-labels" $}}
</div>
</section>{{end}}
{{else}}
<div class="mc-axis-layout">
{{template "multi-chart-y-labels" .}}
<svg class="mc-canvas" width="566" height="201" viewBox="54 7 566 201" role="group" aria-label="{{.Label}} chart">
{{if or (eq .Type "combo") (eq .Type "column") (eq .Type "stacked") (eq .Type "area")}}<defs><pattern id="{{.ID}}-{{.Type}}-stripe" width="5" height="5" patternUnits="userSpaceOnUse"><rect class="mc-pattern-base" width="5" height="5"/><path class="mc-pattern-line" d="m-1 1 2-2m-2 7 7-7m-2 7 2-2"/></pattern></defs>{{end}}
{{template "multi-chart-axes" .}}
{{range .Series}}{{if eq .Kind "area"}}<path class="mc-area" d="{{.AreaPath}}" {{if eq .Tone 1}}fill="url(#{{$.ID}}-{{$.Type}}-stripe)"{{end}} data-mc-series="{{.Index}}" data-tone="{{.Tone}}" aria-hidden="true"/>{{end}}{{end}}
{{range .Series}}{{if eq .Kind "column"}}{{$tone := .Tone}}<g class="mc-columns" aria-hidden="true" data-mc-series="{{.Index}}" data-tone="{{$tone}}">
{{range .Points}}<rect class="mc-column" data-mc-mark="{{.Index}}" x="{{.ColumnX}}" y="{{.ColumnY}}" width="{{.ColumnWidth}}" height="{{.ColumnHeight}}" rx="1" {{if .Negative}}data-negative{{end}} {{if eq $tone 1}}fill="url(#{{$.ID}}-{{$.Type}}-stripe)"{{end}}/>{{end}}
</g>{{end}}{{end}}
{{range .Series}}{{if ne .Kind "column"}}{{template "multi-chart-line" .}}{{end}}{{end}}
{{template "multi-chart-hits" .}}
</svg>
{{template "multi-chart-x-labels" .}}
</div>
{{end}}
</div>
{{- end}}
{{- $c := multiChartView . -}}
<figure id="{{$c.ID}}" class="mu-multi-chart" data-mono="multi-chart" data-mc-display-mode="{{$c.Type}}" aria-labelledby="{{$c.ID}}-title">
<figcaption class="mc-mast">
<div><h2 id="{{$c.ID}}-title">{{$c.Title}}</h2>{{with $c.Caption}}<p>{{.}}</p>{{end}}</div>
{{if and $c.HasData $c.ShowTypes}}<div class="mc-controls" data-mc-controls role="group" aria-label="Chart view" hidden>{{range $c.Plots}}<button type="button" data-mc-switch="{{.Type}}" aria-pressed="{{.Selected}}">{{template "multi-chart-icon" .Type}}{{.Label}}</button>{{end}}</div>{{end}}
</figcaption>
{{if $c.HasData}}
<div class="mc-legend" role="group" aria-label="Chart series">{{range $c.Series}}<button type="button" disabled data-mc-toggle="{{.Index}}" data-tone="{{.Tone}}" data-base-kind="{{.Kind}}" aria-pressed="true"><span class="mc-swatch" aria-hidden="true"></span>{{.Name}}</button>{{end}}</div>
<div class="mc-body">
<div class="mc-graph">
<div class="mc-plot-head"><span>{{or $c.Unit "Value"}}</span><button data-mc-replay class="mc-replay" type="button" hidden aria-label="Replay chart animation" title="Replay chart animation">{{template "multi-chart-icon" "replay"}}</button></div>
<div data-mc-stage>{{range $c.Plots}}{{if .Selected}}{{template "multi-chart-plot" .}}{{end}}{{end}}</div>
{{range $c.Plots}}{{if not .Selected}}<template data-mc-template="{{.Type}}">{{template "multi-chart-plot" .}}</template>{{end}}{{end}}
</div>
{{with $c.Latest}}<div class="mc-inspect" role="group" aria-label="Category breakdown">
<div class="mc-period"><span>Category</span><strong data-mc-period>{{.Label}}</strong></div>
<dl>{{range .Cells}}<div data-mc-series="{{.Index}}"><dt>{{.Name}}</dt><dd data-mc-value="{{.Index}}">{{.Display}}</dd></div>{{end}}</dl>
</div>{{end}}
</div>
{{else}}<p class="mc-empty">No data to display.</p>{{end}}
{{if $c.Rows}}<details class="mc-data">
<summary>{{template "multi-chart-icon" "table"}}<span>Data table</span><small>{{len $c.Rows}} {{if eq (len $c.Rows) 1}}row{{else}}rows{{end}}</small>{{template "multi-chart-icon" "chevron"}}</summary>
<div class="mc-scroll"><table><caption class="mu-sr-only">{{$c.Title}}</caption><thead><tr><th scope="col">Category</th>{{range $c.Series}}<th scope="col">{{.Name}}</th>{{end}}</tr></thead>
<tbody>{{range $c.Rows}}<tr data-mc-row="{{.Index}}"><th scope="row">{{.Label}}</th>{{range .Cells}}<td>{{.Display}}</td>{{end}}</tr>{{end}}</tbody></table></div>
</details>{{end}}
</figure>Component CSS
.mu-multi-chart[data-mono] {
--mc-paper: #fff;
--mc-ink: #1b1b1b;
--mc-muted: #646464;
--mc-rule: #dadada;
--mc-soft: #f4f4f4;
--mc-axis: #9a9a9a;
--mc-mono: ui-monospace, SFMono-Regular, Consolas, monospace;
--mc-serif: "Iowan Old Style", Georgia, "Times New Roman", serif;
--mc-pad: clamp(.85rem, 3.6cqi, 2rem);
container-type: inline-size;
width: 100%;
min-width: 0;
margin: 0;
border: 1px solid var(--mc-rule);
border-radius: .85rem;
background: var(--mc-paper);
color: var(--mc-ink);
overflow: hidden;
}
[data-theme="dark"] .mu-multi-chart[data-mono] {
--mc-paper: #202020;
--mc-ink: #f5f5f5;
--mc-muted: #bcbcbc;
--mc-rule: #474747;
--mc-soft: #2b2b2b;
--mc-axis: #898989;
}
.mc-mast {
display: flex;
flex-wrap: wrap;
align-items: end;
justify-content: space-between;
gap: 1rem;
padding: clamp(1.4rem, 4cqi, 2.35rem) var(--mc-pad) 1.05rem;
}
.mu-multi-chart .mc-mast h2 {
margin: 0;
color: var(--mc-ink);
font: 400 clamp(2rem, 5.8cqi, 3.75rem)/1.03 var(--mc-serif);
letter-spacing: -.063em;
overflow-wrap: anywhere;
}
.mu-multi-chart .mc-mast p {
margin: .55rem 0 0;
color: var(--mc-muted);
font-size: .84rem;
line-height: 1.4;
overflow-wrap: anywhere;
}
.mc-controls {
display: inline-grid;
grid-template-columns: repeat(7, minmax(0, 1fr));
gap: .12rem;
max-width: 100%;
padding: .2rem;
border: 1px solid var(--mc-rule);
border-radius: .48rem;
background: var(--mc-soft);
}
.mc-controls button, .mc-legend button, .mc-replay {
display: inline-flex;
align-items: center;
justify-content: center;
gap: .38rem;
border: 0;
background: transparent;
color: var(--mc-muted);
font: 600 .76rem/1.25 Inter, Arial, sans-serif;
}
.mc-controls button { min-height: 1.9rem; padding: .32rem .54rem; border-radius: .29rem; }
.mc-controls button:hover, .mc-replay:hover { color: var(--mc-ink); background: var(--mc-paper); }
.mc-controls button[aria-pressed="true"] { color: var(--mc-paper); background: var(--mc-ink); }
.mu-multi-chart .mc-icon { flex: none; background: transparent; }
.mc-legend { display: flex; flex-wrap: wrap; gap: .25rem .4rem; margin: 0 var(--mc-pad); padding: 0 0 1rem; border-bottom: 1px solid var(--mc-rule); }
.mc-legend button {
justify-content: start;
min-height: 1.95rem;
max-width: 100%;
padding: .28rem .62rem;
border: 1px solid var(--mc-rule);
border-radius: 2rem;
color: var(--mc-ink);
overflow-wrap: anywhere;
text-align: start;
}
.mc-legend button:disabled { cursor: default; opacity: 1; }
.mc-legend button[aria-pressed="false"] { color: var(--mc-muted); }
.mc-legend button[aria-pressed="false"] .mc-swatch { opacity: .32; }
.mc-legend button:enabled:hover { background: var(--mc-soft); }
.mc-legend button[aria-disabled="true"] { cursor: default; }
.mc-swatch { position: relative; display: inline-grid; flex: none; place-items: center; width: 1rem; height: .9rem; }
.mc-swatch::before { content: ""; width: .7rem; height: .7rem; border-radius: 1px; border: 1px solid currentColor; background: var(--mc-tone); }
.mu-multi-chart [data-tone="0"] { --mc-tone: var(--mc-ink); }
.mu-multi-chart [data-tone="1"] { --mc-tone: repeating-linear-gradient(135deg, var(--mc-paper) 0 2px, var(--mc-muted) 2px 3px); }
.mu-multi-chart [data-tone="2"] { --mc-tone: #858585; }
.mu-multi-chart [data-tone="3"] { --mc-tone: var(--mc-paper); }
.mu-multi-chart [data-tone="4"] { --mc-tone: #aaa; }
.mu-multi-chart [data-tone="5"] { --mc-tone: #5c5c5c; }
.mu-multi-chart:is([data-mc-display-mode="line"],[data-mc-display-mode="panels"],[data-mc-display-mode="area"],[data-mc-display-mode="dots"]) .mc-swatch::before,
.mu-multi-chart[data-mc-display-mode="combo"] [data-base-kind="line"] .mc-swatch::before {
z-index: 1; width: .43rem; height: .43rem; border-radius: var(--mc-round, 50%); background: var(--mc-marker-fill, var(--mc-paper)); transform: rotate(var(--mc-angle, 0deg));
}
.mu-multi-chart:is([data-mc-display-mode="line"],[data-mc-display-mode="panels"],[data-mc-display-mode="area"]) .mc-swatch::after,
.mu-multi-chart[data-mc-display-mode="combo"] [data-base-kind="line"] .mc-swatch::after { content: ""; position: absolute; width: 100%; border-top: 1px solid currentColor; }
.mu-multi-chart :is([data-tone="1"],[data-tone="4"]) { --mc-round: 0; }
.mu-multi-chart :is([data-tone="2"],[data-tone="5"]) { --mc-round: 0; --mc-angle: 45deg; }
.mu-multi-chart :is([data-tone="3"],[data-tone="4"],[data-tone="5"]) { --mc-marker-fill: var(--mc-ink); }
.mc-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; padding: .65rem var(--mc-pad) 1.15rem; }
.mc-graph, .mc-plot, .mc-controls, .mc-mast > div { min-width: 0; }
.mc-plot-head { display: flex; align-items: center; justify-content: space-between; min-height: 2rem; }
.mc-plot-head > span, .mc-period > span {
color: var(--mc-muted);
font: 600 .65rem/1.35 var(--mc-mono);
letter-spacing: .065em;
text-transform: uppercase;
overflow-wrap: anywhere;
}
.mc-replay { width: 1.8rem; height: 1.8rem; border: 1px solid var(--mc-rule); border-radius: 50%; }
.mc-replay:hover { background: var(--mc-soft); }
.mu-multi-chart .mc-canvas { display: block; width: 100%; height: auto; background: transparent; }
.mc-grid line { stroke: var(--mc-rule); stroke-dasharray: 2 4; }
.mc-grid .mc-zero { stroke: var(--mc-axis); stroke-dasharray: none; }
.mc-guides line { stroke: var(--mc-axis); stroke-dasharray: 3 4; opacity: 0; }
.mc-guides [data-current] { opacity: 1; }
.mc-pattern-base { fill: var(--mc-soft); }
.mc-pattern-line { stroke: var(--mc-muted); fill: none; stroke-width: 1.1; }
.mc-columns { fill: var(--mc-tone); }
.mc-column { stroke: var(--mc-ink); stroke-width: .7; transform-box: fill-box; transform-origin: bottom; }
.mc-column[data-negative] { transform-origin: top; }
.mc-column[data-current] { stroke-width: 1.65; }
.mc-line, .mc-marker { stroke: var(--mc-ink); stroke-linejoin: round; }
.mc-line { stroke-width: 2.4; stroke-linecap: round; }
.mc-halo { stroke: var(--mc-paper); stroke-width: 4.7; fill: none; }
.mc-line-series[data-tone="1"] .mc-line, .mc-line-series[data-tone="4"] .mc-line { stroke-dasharray: 6 3; }
.mc-line-series[data-tone="2"] .mc-line, .mc-line-series[data-tone="5"] .mc-line { stroke-dasharray: 2 4; }
.mc-area { fill-opacity: .13; }
.mc-area:not([fill]) { fill: var(--mc-ink); }
.mc-area[data-tone="1"] { fill-opacity: .42; }
.mc-plot[data-mc-mode="area"] .mc-pattern-base { fill: transparent; }
.mc-plot[data-mc-mode="dots"] .mc-marker > * { transform: scale(1.3); }
.mc-plot[data-mc-mode="dots"] .mc-marker[data-current] > * { transform: scale(1.6); }
.mc-line-series:is([data-tone="3"],[data-tone="4"],[data-tone="5"]) .mc-marker { fill: var(--mc-ink); }
.mc-marker { fill: var(--mc-paper); stroke-width: 1.8; }
.mc-marker[data-current] > * { transform: scale(1.3); stroke-width: 2.2; }
.mc-hit { fill: transparent; }
.mc-hit[tabindex] { cursor: crosshair; }
.mu-multi-chart .mc-hit:focus-visible { outline: 1.5px dashed var(--mc-ink); outline-offset: -2px; }
.mc-plot[data-mc-mode="panels"] { display: grid; gap: .6rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14.5rem), 1fr)); }
.mc-panel { min-width: 0; padding: .7rem .5rem .45rem; border: 1px solid var(--mc-rule); border-radius: .45rem; container-type: inline-size; }
.mu-multi-chart .mc-panel h3 { margin: 0 .22rem .48rem; color: var(--mc-ink); font: 650 .82rem/1.25 Inter, Arial, sans-serif; overflow-wrap: anywhere; }
.mc-axis-layout { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: .2rem .45rem; padding: .2rem .15rem 0; }
.mc-axis-y, .mc-axis-x { color: var(--mc-muted); font: .72rem/1.15 var(--mc-mono); font-variant-numeric: tabular-nums; }
.mc-axis-y { display: grid; }
.mc-axis-y span { position: relative; grid-area: 1/1; align-self: start; justify-self: end; top: calc((var(--mc-y) - 7) * 100% / 201); transform: translateY(-50%); }
.mc-axis-x { position: relative; grid-column: 2; height: 1rem; }
.mc-axis-x span { position: absolute; left: calc((var(--mc-x) - 54) * 100% / 566); transform: translateX(-50%); max-width: calc(94% / min(7, var(--mc-labels))); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mc-axis-x[data-dense] span:first-child { transform: none; }
.mc-axis-x[data-dense] span:last-child { transform: translateX(-100%); }
.mc-panel :is(.mc-axis-y,.mc-axis-x) { font-size: .61rem; }
.mc-panel .mc-axis-layout { gap: .1rem .3rem; }
.mc-panel .mc-axis-x { height: .82rem; }
.mc-panel .mc-axis-x span { max-width: 30%; }
.mc-panel .mc-axis-x:has(> span:nth-child(5)) span:not(:first-child,:nth-child(4),:last-child) { display: none; }
.mc-panel .mc-axis-layout .mc-canvas { height: clamp(5.5rem, 31cqi, 9rem); }
.mc-panel .mc-line, .mc-panel .mc-halo, .mc-panel .mc-marker > * { vector-effect: non-scaling-stroke; }
.mc-panel .mc-line { stroke-width: 1.4; }
.mc-panel .mc-halo { stroke-width: 2.2; }
.mc-panel .mc-marker > * { stroke-width: 1.1; }
.mc-inspect {
display: flex;
flex-wrap: wrap;
gap: .8rem 1.2rem;
align-items: center;
padding: .9rem 1rem;
border-radius: .45rem;
background: #202020;
color: #fafafa;
}
[data-theme="dark"] .mc-inspect { background: #121212; box-shadow: inset 0 0 0 1px var(--mc-rule); }
.mc-period { min-width: 0; }
.mc-period > span { display: block; color: #bfbfbf; }
.mc-period strong { display: block; margin-top: .08rem; font: 400 1.8rem/1.05 var(--mc-serif); letter-spacing: -.045em; overflow-wrap: anywhere; }
.mc-inspect dl { display: flex; flex: 1 1 15rem; flex-wrap: wrap; gap: .65rem 0; min-width: 0; margin: 0; }
.mc-inspect dl > div { flex: 1 1 6.8rem; min-width: 0; padding: .07rem .65rem; border-inline-start: 1px solid #555; }
.mc-inspect dt { color: #c8c8c8; font: 500 .7rem/1.4 Inter, Arial, sans-serif; overflow-wrap: anywhere; }
.mc-inspect dd { margin: .2rem 0 0; color: #fff; font: 560 .82rem/1.3 var(--mc-mono); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.mc-data { border-top: 1px solid var(--mc-rule); }
.mc-data summary { display: flex; align-items: center; gap: .5rem; padding: .77rem var(--mc-pad); list-style: none; font-size: .83rem; font-weight: 650; }
.mc-data summary::-webkit-details-marker { display: none; }
.mc-data summary:hover { background: var(--mc-soft); }
.mc-data summary:focus-visible { outline-offset: -3px; }
.mc-data small { margin-inline-start: auto; font: 400 .7rem var(--mc-mono); color: var(--mc-muted); }
.mc-data[open] summary .mc-icon:last-child { transform: rotate(180deg); }
.mc-scroll { overflow-x: auto; }
.mu-multi-chart .mc-data table { width: 100%; margin: 0; border: 0; border-collapse: collapse; color: var(--mc-ink); font-size: .8rem; }
.mc-data th, .mc-data td { padding: .54rem .8rem; border: 0; border-top: 1px solid var(--mc-rule); text-align: end; }
.mc-data tr > :first-child { text-align: start; padding-inline-start: var(--mc-pad); }
.mc-data tr > :last-child { padding-inline-end: var(--mc-pad); }
.mc-data thead { background: var(--mc-soft); }
.mc-data td { font: .77rem/1.4 var(--mc-mono); }
.mu-multi-chart .mc-empty { margin: 0; padding: 1rem var(--mc-pad) 1.5rem; color: var(--mc-muted); }
@container (min-width: 53rem) {
.mu-multi-chart:not([data-mc-display-mode="panels"]) .mc-body { grid-template-columns: minmax(0, 1fr) minmax(10.5rem, 20%); gap: 1.5rem; align-items: center; }
.mu-multi-chart:not([data-mc-display-mode="panels"]) .mc-inspect { display: block; }
.mu-multi-chart:not([data-mc-display-mode="panels"]) .mc-inspect dl { display: grid; gap: 0; padding-top: .55rem; }
.mu-multi-chart:not([data-mc-display-mode="panels"]) .mc-inspect dl > div { border: 0; border-top: 1px solid #555; padding: .5rem 0; }
}
@container (max-width: 38rem) {
.mc-controls { grid-template-columns: repeat(4, minmax(0, 1fr)); width: 100%; }
}
@container (max-width: 29rem) {
.mc-mast { display: block; }
.mc-controls { margin-top: 1rem; }
.mc-controls button { gap: .25rem; padding: .3rem .4rem; }
.mc-controls .mc-icon { width: .78rem; }
.mc-axis-y, .mc-axis-x { font-size: .64rem; }
.mc-inspect { align-items: start; gap: .65rem; }
.mc-inspect dl { flex-basis: 100%; }
.mc-inspect dl > div { flex-basis: 5rem; }
}
@media (prefers-reduced-motion: no-preference) {
[data-mc-animate] .mc-column { animation: mc-rise .48s cubic-bezier(.2,.75,.26,1) backwards; }
[data-mc-animate] .mc-columns:nth-of-type(even) .mc-column { animation-delay: 55ms; }
[data-mc-animate] .mc-line-series, [data-mc-animate] .mc-area { animation: mc-draw .65s cubic-bezier(.24,.67,.29,1) backwards; }
@keyframes mc-rise { from { transform: scaleY(0); } }
@keyframes mc-draw { from { clip-path: inset(-8% 100% -8% -8%); } to { clip-path: inset(-8%); } }
}
@media (prefers-reduced-motion: reduce) { .mc-replay { display: none; } }JavaScript module
export function mount(root) {
const stage = root.querySelector('[data-mc-stage]');
let graph = stage?.querySelector('[data-mc-mode]');
if (!graph) return;
const rows = [...root.querySelectorAll('tr[data-mc-row]')].map(row => ({
index: row.dataset.mcRow,
label: row.cells[0].textContent.trim(),
values: [...row.cells].slice(1).map(cell => cell.textContent.trim())
}));
if (!rows.length) return;
const period = root.querySelector('[data-mc-period]');
const values = root.querySelectorAll('[data-mc-value]');
const legend = [...root.querySelectorAll('[data-mc-toggle]')];
const switches = root.querySelectorAll('[data-mc-switch]');
const names = legend.map(button => button.textContent.trim());
const visible = new Set(legend.map(button => button.dataset.mcToggle));
const graphs = new Map([[graph.dataset.mcMode, graph]]);
for (const template of root.querySelectorAll('template[data-mc-template]')) {
const view = template.content.firstElementChild;
if (view) graphs.set(template.dataset.mcTemplate, view);
}
let active = rows.length - 1;
let points, marks;
const indices = new Map(rows.map((row, i) => [row.index, i]));
function indexGraph() {
root.dataset.mcDisplayMode = graph.dataset.mcMode;
// Panels repeat each period once per series; index once per view change.
points = rows.map(() => []);
marks = rows.map(() => []);
for (const hit of graph.querySelectorAll('[data-mc-point]')) {
points[indices.get(hit.dataset.mcPoint)].push(hit);
}
for (const mark of graph.querySelectorAll('[data-mc-mark], [data-mc-guide]')) {
marks[indices.get(mark.dataset.mcMark ?? mark.dataset.mcGuide)].push(mark);
}
for (const button of switches) {
button.setAttribute('aria-pressed', String(button.dataset.mcSwitch === graph.dataset.mcMode));
}
}
function highlight(i, selected) {
for (const mark of marks[i]) mark.toggleAttribute('data-current', selected);
for (const hit of points[i]) {
hit.toggleAttribute('data-active', selected);
const tabbable = selected && !hit.closest('[data-mc-series][hidden]');
hit.setAttribute('tabindex', tabbable ? '0' : '-1');
}
}
function inspect(i) {
if (active === i) return;
highlight(active, false);
active = i;
highlight(active, true);
if (period) period.textContent = rows[i].label;
for (const field of values) field.textContent = rows[i].values[field.dataset.mcValue];
}
function restack() {
// Each category has separate cumulative totals above and below zero.
// Use the original segment heights so a filter never changes the scale.
const zero = Number(graph.dataset.mcZero);
const above = rows.map(() => zero);
const below = rows.map(() => zero);
for (const group of graph.querySelectorAll('[data-mc-series]:not([hidden])')) {
for (const bar of group.querySelectorAll('rect[data-mc-mark]')) {
const i = indices.get(bar.dataset.mcMark);
const height = Number(bar.getAttribute('height'));
const negative = bar.hasAttribute('data-negative');
const y = negative ? below[i] : above[i] - height;
bar.setAttribute('y', y.toFixed(2));
if (negative) below[i] += height;
else above[i] = y;
}
}
}
function syncSeries() {
const focused = root.ownerDocument.activeElement;
const panel = graph.contains(focused) && focused.closest('[data-mc-series]');
for (const node of root.querySelectorAll('[data-mc-series]')) {
node.toggleAttribute('hidden', !visible.has(node.dataset.mcSeries));
}
if (graph.dataset.mcMode === 'stacked') restack();
for (const button of legend) {
const shown = visible.has(button.dataset.mcToggle);
button.disabled = false;
button.setAttribute('aria-pressed', String(shown));
button.setAttribute('aria-disabled', String(shown && visible.size === 1));
}
// Make keyboard inspection and the visual readout describe the same series.
for (const [i, row] of rows.entries()) {
const details = row.values.flatMap((value, series) =>
visible.has(String(series)) ? [names[series] + ': ' + (value === '—' ? 'No data' : value)] : []
);
for (const hit of points[i]) hit.setAttribute('aria-label', [row.label, ...details].join(', '));
highlight(i, i === active);
}
// Some browsers leave focus in the plot when a legend button is clicked.
if (panel && !visible.has(panel.dataset.mcSeries)) {
points[active].find(hit => !hit.closest('[data-mc-series][hidden]'))?.focus({preventScroll: true});
}
}
root.addEventListener('click', event => {
const button = event.target.closest('button');
if (!button) return;
if (button.hasAttribute('data-mc-toggle')) {
const series = button.dataset.mcToggle;
if (visible.has(series)) {
if (visible.size === 1) return;
visible.delete(series);
} else visible.add(series);
syncSeries();
} else if (button.hasAttribute('data-mc-switch')) {
const next = graphs.get(button.dataset.mcSwitch);
if (!next || graph === next) return;
if (graph.contains(root.ownerDocument.activeElement)) button.focus({preventScroll: true});
graph.replaceWith(next);
graph = next;
indexGraph();
syncSeries();
}
});
function pointOf(event) {
return event.target.closest('[data-mc-point]');
}
function inspectHit(event) {
const hit = pointOf(event);
if (hit) inspect(indices.get(hit.dataset.mcPoint));
}
stage.addEventListener('pointerover', inspectHit);
stage.addEventListener('focusin', inspectHit);
stage.addEventListener('click', event => {
const hit = pointOf(event);
if (hit) {
inspect(indices.get(hit.dataset.mcPoint));
hit.focus({preventScroll: true});
}
});
stage.addEventListener('keydown', event => {
if (event.ctrlKey || event.metaKey || event.altKey) return;
const hit = pointOf(event);
if (!hit) return;
const i = indices.get(hit.dataset.mcPoint);
let next;
switch (event.key) {
case 'ArrowLeft': case 'ArrowUp': next = Math.max(0, i - 1); break;
case 'ArrowRight': case 'ArrowDown': next = Math.min(rows.length - 1, i + 1); break;
case 'Home': next = 0; break;
case 'End': next = rows.length - 1; break;
default: return;
}
event.preventDefault();
const svg = hit.ownerSVGElement;
inspect(next);
points[next].find(point => point.ownerSVGElement === svg)?.focus({preventScroll: true});
});
indexGraph();
syncSeries();
const controls = root.querySelector('[data-mc-controls]');
if (controls && graphs.size > 1) controls.hidden = false;
const replay = root.querySelector('[data-mc-replay]');
if (replay) {
replay.hidden = false;
replay.addEventListener('click', () => {
stage.removeAttribute('data-mc-animate');
void stage.offsetWidth; // Commit the initial CSS state before replaying.
stage.setAttribute('data-mc-animate', '');
});
}
if (typeof IntersectionObserver === 'function') {
const observer = new IntersectionObserver(entries => {
if (!entries.some(entry => entry.isIntersecting)) return;
stage.setAttribute('data-mc-animate', '');
observer.disconnect();
});
observer.observe(stage);
} else stage.setAttribute('data-mc-animate', '');
}Use the HTML in a static site
Copy the rendered HTML above. Download these assets into the same folder as your page, then add the tags below to its head.
Shared CSS Component CSS Ready-to-use module
<link rel="stylesheet" href="./base.css">
<link rel="stylesheet" href="./multi-chart.css">
<script type="module" src="./multi-chart.js"></script>Copy into your project
Run this command from the Mono checkout. Set -out to the component directory in your application.
go run ./cmd/mono-ui add -out ./components multi-chartExample properties (JSON)
{
"Caption": "Monthly copies by sales channel · January–June 2026",
"Labels": [
"Jan",
"Feb",
"Mar",
"Apr",
"May",
"Jun"
],
"Series": [
{
"Kind": "column",
"Name": "Retail",
"Values": [
740,
980,
880,
1190,
1100,
1460
]
},
{
"Kind": "column",
"Name": "Direct",
"Values": [
540,
610,
820,
780,
1010,
1180
]
},
{
"Kind": "line",
"Name": "Wholesale",
"Values": [
800,
850,
1020,
970,
1160,
1200
]
}
],
"ShowTypes": true,
"Title": "Edition performance",
"Type": "combo",
"Unit": "copies"
}