BlocksArea charts

Area charts

Five examples for funnels, balances, and filled trends.

Example

Revenue

Trailing 12 weeks

    View data
    Revenue values

    New customers

    Trailing 12 weeks

      View data
      New customers values

      Active teams

      Trailing 12 weeks

        View data
        Active teams values

        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.

        Example

        Conversion funnel

        Latest weekly counts for each stage

          View data
          Conversion funnel values

          Campaign impressions

          Switch date ranges for a filled impressions trend.

          Example

          Campaign impressions

          Delivery across selected days

            View data
            Campaign impressions values

            Order operations

            Switch metrics and periods to inspect throughput and efficiency.

            Example

            Order operations

            Compare throughput and efficiency by period

              View data
              Order operations values

              Deposits and borrowing

              Compare reserves and borrowing with layered fills and a date range.

              Example

              Deposits and borrowing

              Daily balances in USD

                View data
                Deposits and borrowing values

                Usage

                DataPass { 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.
                HTMLImport setChartData from @inlay-ui/foundation/chart-data. Call setChartData(chartElement, data) with the article marked data-ilui-chart whenever your data changes.
                React and VueThe 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 dataPass null or empty arrays to show the empty state. Omit the data prop or pass undefined to restore the sample data.
                KeyboardFocus the plot and use the arrow keys to inspect values. Home and End jump to the first and last points.
                AccessibilityEvery plot has a data table. Series use labeled swatches and distinct stroke patterns when several are visible.