BlocksArea charts
Area charts
Five examples for funnels, balances, and filled trends.
Revenue
Trailing 12 weeks
View data
New customers
Trailing 12 weeks
View data
Active teams
Trailing 12 weeks
View data
Setup
Download the shared Inlay assets once. Then choose HTML, React, or Vue and copy the example above.
Conversion funnel
Compare how many visitors reach each stage over time.
Conversion funnel
Latest weekly counts for each stage
View data
Campaign impressions
Switch date ranges for a filled impressions trend.
Campaign impressions
Delivery across selected days
View data
Order operations
Switch metrics and periods to inspect throughput and efficiency.
Order operations
Compare throughput and efficiency by period
View data
Deposits and borrowing
Compare reserves and borrowing with layered fills and a date range.
Deposits and borrowing
Daily balances in USD
View data
Usage
| Data | Pass { labels, series } with one value per label in each series. Give a series a stable id to retain its selection when it moves. Supported tones are blue, teal, violet, magenta, success, warning, and danger. |
|---|---|
| HTML | Import setChartData from @inlay-ui/foundation/chart-data. Call setChartData(chartElement, data) with the article marked data-ilui-chart whenever your data changes. |
| React and Vue | The copied snippet separates sampleData from chartOptions. Pass live data from React state or a Vue ref. For examples with multiple charts, pass an array of datasets in display order. |
| Empty data | Pass null or empty arrays to show the empty state. Omit the data prop or pass undefined to restore the sample data. |
| Keyboard | Focus the plot and use the arrow keys to inspect values. Home and End jump to the first and last points. |
| Accessibility | Every plot has a data table. Series use labeled swatches and distinct stroke patterns when several are visible. |