Small Multiple
Use a small multiple to display a series of similar graphs or charts using the same scale and axes. A small multiple can be created by using the grid, loop and query functions option in combination with a unique list of horizontal and vertical axes.
- Define unique lists for axes
- Define grid
- Define loops for horizontal and/or veritical grid
- Filter chart value with query function
Example
Loading...
Loading...
Loading...
Loading...
<Grid cols=3 gapSize=lg>
{#each categories as category}
<LineChart
data={orders_by_category.where(`category = '${category.name}'`)}
x=month
y=sales_usd0k
yAxisTitle="Sales per Month"
title="Monthly Sales"
subtitle="{category.name}"
/>
{/each}
</Grid>
