Same props as LineChart with the area under each line filled, including smooth.

0200400600800MonTueWedThuFriBananas, Mon: 400Bananas, Tue: 520Bananas, Wed: 480Bananas, Thu: 700Bananas, Fri: 650
050100000408121620Energy %, 00: 12Energy %, 04: 8Energy %, 08: 45Energy %, 12: 82Energy %, 16: 60Energy %, 20: 25

Props

  • labelsstring[]

    Names of the x positions / categories.

  • series{ name, values: number[], color? }[]

    One entry per series; values has one number per label.

  • heightnumber
    Default: 300

    Chart height in px (width follows the container).

  • labelstring

    Accessible name for the chart.

  • legendboolean
    Default: true

    Show the legend when there are several series.

  • smoothboolean
    Default: false

    Draw curves instead of straight segments. They pass through every point and never overshoot it.

  • animateboolean
    Default: true

    Animate the chart in when it appears and glide it to new values when the data changes (skipped for users who prefer reduced motion).

  • classNamestring
    Default: ''

    Extra classes for the root element.