Skip to content
daisyBlazor

AreaChart

A line chart with the area under each series filled, for showing volume over time. It wraps LineChart with Area on and takes the same Series and Labels; unlike LineChart, ShowPoints is off by default. Like LineChart it is laid out by the bundled D3 module.
Essentials
Cover · <AreaChart>

Active users

Our busiest summer yet

Line chart with 2 series Web: May 30, Jun 52, Jul 81, Aug 96, Sep 74; Mobile: May 12, Jun 20, Jul 34, Aug 41, Sep 38MayJunJulAugSepWeb · May: 30Web · Jun: 52Web · Jul: 81Web · Aug: 96Web · Sep: 74Mobile · May: 12Mobile · Jun: 20Mobile · Jul: 34Mobile · Aug: 41Mobile · Sep: 38
Web Mobile

Examples

Basic

One smoothed series with the area filled; points stay off by default for a clean silhouette.

API requests, 2025–2026 (millions)
API requests, 2025–2026 (millions) Requests: Q1 118, Q2 132, Q3 127, Q4 204, Q1 141, Q2 163, Q3 176Q1Q2Q3Q4Q1Q2Q3050100150200250Q1: 118Q2: 132Q3: 127Q4: 204Q1: 141Q2: 163Q3: 176
website/Examples/Charts/AreaChartBasicExample.razor Source

Several series

Fills are translucent so overlapping series stay readable; turn ShowPoints on to mark each value.

Active users by plan (thousands)
Active users by plan (thousands) Free: Apr 41, May 44, Jun 47, Jul 52, Aug 50, Sep 58; Pro: Apr 28, May 30, Jun 35, Jul 33, Aug 38, Sep 42; Enterprise: Apr 9, May 10, Jun 12, Jul 13, Aug 15, Sep 17AprMayJunJulAugSep0102030405060Free · Apr: 41Free · May: 44Free · Jun: 47Free · Jul: 52Free · Aug: 50Free · Sep: 58Pro · Apr: 28Pro · May: 30Pro · Jun: 35Pro · Jul: 33Pro · Aug: 38Pro · Sep: 42Enterprise · Apr: 9Enterprise · May: 10Enterprise · Jun: 12Enterprise · Jul: 13Enterprise · Aug: 15Enterprise · Sep: 17
Free Pro Enterprise
website/Examples/Charts/AreaChartSeriesExample.razor Source

Stacked

Stacked draws each series on top of the running total, so the bands add up to the whole and the fills never mix; tooltips still show each series' own value.

Active users by plan (thousands)
Active users by plan (thousands) Free: Apr 41, May 44, Jun 47, Jul 52, Aug 50, Sep 58; Pro: Apr 28, May 30, Jun 35, Jul 33, Aug 38, Sep 42; Enterprise: Apr 9, May 10, Jun 12, Jul 13, Aug 15, Sep 17AprMayJunJulAugSep020406080100120Free · Apr: 41Free · May: 44Free · Jun: 47Free · Jul: 52Free · Aug: 50Free · Sep: 58Pro · Apr: 28Pro · May: 30Pro · Jun: 35Pro · Jul: 33Pro · Aug: 38Pro · Sep: 42Enterprise · Apr: 9Enterprise · May: 10Enterprise · Jun: 12Enterprise · Jul: 13Enterprise · Aug: 15Enterprise · Sep: 17
Free Pro Enterprise
website/Examples/Charts/AreaChartStackedExample.razor Source

100% stacked

Percent stacks the series to 100% at every label, so the fills show each one's share; tooltips show the value and the share.

Share of API requests by region
Share of API requests by region Europe: Apr 4.1, May 4.4, Jun 4.8, Jul 5, Aug 5.3, Sep 5.9; Americas: Apr 6.2, May 6, Jun 6.3, Jul 6.1, Aug 6.4, Sep 6.6; Asia Pacific: Apr 1.4, May 1.7, Jun 2.2, Jul 2.6, Aug 3.1, Sep 3.4AprMayJunJulAugSep0%20%40%60%80%100%Europe · Apr: 4.1 (35%)Europe · May: 4.4 (36.4%)Europe · Jun: 4.8 (36.1%)Europe · Jul: 5 (36.5%)Europe · Aug: 5.3 (35.8%)Europe · Sep: 5.9 (37.1%)Americas · Apr: 6.2 (53%)Americas · May: 6 (49.6%)Americas · Jun: 6.3 (47.4%)Americas · Jul: 6.1 (44.5%)Americas · Aug: 6.4 (43.2%)Americas · Sep: 6.6 (41.5%)Asia Pacific · Apr: 1.4 (12%)Asia Pacific · May: 1.7 (14%)Asia Pacific · Jun: 2.2 (16.5%)Asia Pacific · Jul: 2.6 (19%)Asia Pacific · Aug: 3.1 (20.9%)Asia Pacific · Sep: 3.4 (21.4%)
Europe Americas Asia Pacific
website/Examples/Charts/AreaChartPercentExample.razor Source

Rotated

Horizontal turns the chart so the labels run down the side and the areas fill from the left; here also Stacked and Step. References and Bands work as on LineChart.

Open incidents by severity, per week
Open incidents by severity, per week Sev 1: W1 1, W2 0, W3 2, W4 1, W5 0, W6 0, W7 1, W8 0; Sev 2: W1 4, W2 3, W3 5, W4 6, W5 3, W6 2, W7 4, W8 3; Sev 3: W1 9, W2 11, W3 8, W4 12, W5 10, W6 7, W7 9, W8 805101520W1W2W3W4W5W6W7W8Sev 1 · W1: 1Sev 1 · W2: 0Sev 1 · W3: 2Sev 1 · W4: 1Sev 1 · W5: 0Sev 1 · W6: 0Sev 1 · W7: 1Sev 1 · W8: 0Sev 2 · W1: 4Sev 2 · W2: 3Sev 2 · W3: 5Sev 2 · W4: 6Sev 2 · W5: 3Sev 2 · W6: 2Sev 2 · W7: 4Sev 2 · W8: 3Sev 3 · W1: 9Sev 3 · W2: 11Sev 3 · W3: 8Sev 3 · W4: 12Sev 3 · W5: 10Sev 3 · W6: 7Sev 3 · W7: 9Sev 3 · W8: 8
Sev 1 Sev 2 Sev 3
website/Examples/Charts/AreaChartRotatedExample.razor Source

Playground

API requests, 2025–2026 (millions)
API requests, 2025–2026 (millions) Requests: Q1 118, Q2 132, Q3 127, Q4 204, Q1 141, Q2 163, Q3 176Q1Q2Q3Q4Q1Q2Q3050100150200250Q1: 118Q2: 132Q3: 127Q4: 204Q1: 141Q2: 163Q3: 176
<AreaChart
           Smooth="true"
           Title="API requests, 2025–2026 (millions)"
           Labels="@_quarters"
           Series="@_requests" />

@code {
    private readonly string[] _quarters = ["Q1", "Q2", "Q3", "Q4", "Q1", "Q2", "Q3"];

    private readonly ChartSeries[] _requests =
    [
        new("Requests", [118, 132, 127, 204, 141, 163, 176]),
    ];
}

API

<AreaChart>

DaisyBlazor.Charts

Parameters

  • Bands IReadOnlyList<ChartBand>
    = null

    Shaded value ranges (plot bands) drawn behind the areas, each with an optional label.

  • Height string
    = "16rem"

    CSS height of the SVG plot area.

  • Horizontal bool
    = false

    Rotate the chart: the labels run down the vertical axis and the values along the horizontal one, the areas filling from the left. Works with Smooth, Step, Stacked and Percent.

  • Labels IReadOnlyList<string>
    = null

    X-axis category labels (index-aligned with each series' values).

  • Markers IReadOnlyList<ChartMarker>
    = null

    Markers on the category axis: a line at a category, or a shaded span over categories, each with an optional label (see Markers).

  • Percent bool
    = false

    100% stacked areas (implies Stacked): each fill shows its share of the total at its index, on a percent axis. Negative or missing values count as 0. Tooltips show the value and the share.

  • References IReadOnlyList<ChartReference>
    = null

    Reference lines across the plot at a value, drawn over the areas with their label inside the plot; the value axis grows to show them.

  • Series IReadOnlyList<ChartSeries>
    = []

    One or more named series to plot.

  • ShowGrid bool
    = true

    Draw horizontal gridlines and value labels.

  • ShowLegend bool
    = true

    Show a legend when more than one series is present.

  • ShowPoints bool
    = false

    Draw a marker at each data point.

  • ShowTitle bool
    = true

    Draw Title as a visible heading above the chart (the default); false keeps it only as the chart's accessible name, for a chart inside a card that already has a heading.

  • Smooth bool
    = false

    Smooth the line with cubic curves instead of straight segments.

  • Stacked bool
    = false

    Stack the series so each fill sits on top of the previous ones instead of overlapping, for part-of-whole data. Fills are near-opaque so they match the legend swatches.

  • Step bool
    = false

    Draw the line and the fill as steps (step-after: each value holds until the next one). If both Step and Smooth are set, Step wins.

  • Title string
    = null

    Optional heading rendered above the chart.

  • Trendline ChartTrendline
    = ChartTrendline.None

    Fit and draw a dashed trend line per series, over the category index (0, 1, …) on the series' own values, through the category positions (also when Horizontal); its tooltip gives the equation and R², or the period of a moving average. Ignored when Stacked or Percent is on: a fit of the own values would not follow the stacked areas.

  • TrendlineOrder int
    = 2

    Degree of a Polynomial trend line, from 2 to 6 (other values are clamped).

  • TrendlinePeriod int
    = 3

    Number of points a MovingAverage trend line averages (at least 2).

  • Width string
    = "100%"

    CSS width of the chart wrapper.

  • Class string
    = null

    Extra CSS classes forwarded to the underlying LineChart.

  • Style string
    = null

    Inline CSS styles forwarded to the underlying LineChart.

<LineChart>

DaisyBlazor.Charts

Parameters

  • Area bool
    = false

    Fill the area under each line.

  • Bands IReadOnlyList<ChartBand>
    = null

    Shaded value ranges (plot bands) drawn behind the data, cut to the plot, each with an optional label in its corner.

  • Height string
    = "16rem"

    CSS height of the SVG plot area.

  • Horizontal bool
    = false

    Rotate the chart: the labels run down the vertical axis and the values along the horizontal one, each line reading top to bottom. Works with every other option (Smooth, Step, Stacked, Percent, Area); a step then holds its value down to the next label.

  • Labels IReadOnlyList<string>
    = null

    X-axis category labels (index-aligned with each series' values).

  • Markers IReadOnlyList<ChartMarker>
    = null

    Markers on the category axis: a line at a category (the month a pricing change shipped), or with To a shaded span over a run of categories, each with an optional label outside the plot. They run across the chart when it is Horizontal. A marker naming a category the chart does not have is ignored.

  • Percent bool
    = false

    100% stacked lines (implies Stacked): each value is drawn as its share of the total at its index, on a percent axis. Negative or missing values count as 0. Tooltips show the value and the share.

  • References IReadOnlyList<ChartReference>
    = null

    Reference lines across the plot at a value (a target, a limit, a break-even point), drawn over the data with their label inside the plot. The value axis grows to show every line.

  • Series IReadOnlyList<ChartSeries>
    = []

    One or more named series to plot.

  • ShowGrid bool
    = true

    Draw value gridlines and value labels.

  • ShowLegend bool
    = true

    Show a legend when more than one series is present.

  • ShowPoints bool
    = true

    Draw a marker at each data point.

  • ShowTitle bool
    = true

    Draw Title as a visible heading above the chart (the default); false keeps it only as the chart's accessible name, for a chart inside a card that already has a heading.

  • Smooth bool
    = false

    Smooth the line with cubic curves instead of straight segments.

  • Stacked bool
    = false

    Stack the series: each one is drawn on top of the running total of the previous ones, and with Area each fill spans only its own band. Missing or non-finite values count as 0; tooltips still show each series' own value.

  • Step bool
    = false

    Draw the line as steps (step-after: each value holds until the next one). If both Step and Smooth are set, Step wins.

  • Title string
    = null

    Optional heading rendered above the chart.

  • Trendline ChartTrendline
    = ChartTrendline.None

    Fit and draw a dashed trend line per series, over the category index (0, 1, …) on the series' own values, through the category positions (also when Horizontal); its tooltip gives the equation and R², or the period of a moving average. Ignored when Stacked or Percent is on: a fit of the own values would not follow the stacked points.

  • TrendlineOrder int
    = 2

    Degree of a Polynomial trend line, from 2 to 6 (other values are clamped).

  • TrendlinePeriod int
    = 3

    Number of points a MovingAverage trend line averages (at least 2).

  • Width string
    = "100%"

    CSS width of the chart wrapper.

  • Class string
    = null

    Extra CSS classes merged onto the chart wrapper.

  • Style string
    = null

    Inline CSS styles appended to the chart wrapper after the width.

Something went wrong while running the docs. Reload