# @igloo-ui/area-chart

> The area chart is a line chart with shading below the line. This area chart depicts score over time.

Latest version **3.0.0** (published 2026-03-24) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install @igloo-ui/area-chart
pnpm add @igloo-ui/area-chart
yarn add @igloo-ui/area-chart
bun add @igloo-ui/area-chart
```

## Health

**Score 55/100 (C)** — status: active.

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 3.0.0 |
| Published | 2026-03-24 |
| First published | 2022-11-11 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 5 |
| Unpacked size | 43.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 23 |
| Author | Officevibe Inc. |
| Maintainers | infra.admin, alexasselin008 |

## Links

- npm: https://www.npmjs.com/package/@igloo-ui/area-chart
- Repository: https://github.com/workleap/ov-igloo-ui
- Homepage: https://github.com/workleap/ov-igloo-ui#readme
- Issues: https://github.com/workleap/ov-igloo-ui/issues
- npm.io page: https://npm.io/package/@igloo-ui/area-chart

## Dependencies (5)

- [luxon](https://npm.io/package/luxon.md) ^3.4.4
- [recharts](https://npm.io/package/recharts.md) ^2.12.0
- [classnames](https://npm.io/package/classnames.md) ^2.3.2
- [@igloo-ui/tokens](https://npm.io/package/@igloo-ui/tokens.md) ^2.1.0
- [@hopper-ui/tokens](https://npm.io/package/@hopper-ui/tokens.md) ^5.0.0

## Recent versions

- 3.0.0 (latest) — 2026-03-24
- 2.0.3 — 2026-03-11
- 2.0.2 — 2025-08-08
- 2.0.1 — 2025-07-23
- 2.0.0 — 2025-07-22
- 1.2.9 — 2025-01-22
- 1.2.8 — 2024-12-10
- 1.2.7 — 2024-09-18
- 1.2.6 — 2024-08-01
- 1.2.5 — 2024-05-17
- 1.2.4 — 2024-05-09
- 1.2.3 — 2024-05-02
- 1.2.2 — 2024-03-04
- 1.2.1 — 2024-02-23
- 1.2.0 — 2024-01-23
- … 21 more at https://npm.io/package/@igloo-ui/area-chart/versions

## README

# AreaChart

The area chart is a line chart with shading below the line. This area chart depicts score over time.

<Example is="custom" />

<ReferenceLinks is="custom" />

## Installation

To install `@igloo-ui/area-chart` in your project, you will need to run the following command using [npm](https://www.npmjs.com/):

```bash
npm install @igloo-ui/area-chart
```

If you prefer [Yarn](https://classic.yarnpkg.com/en/), use the following command instead:

```bash
yarn add @igloo-ui/area-chart
```

## Usage

Then to use the component in your code just import it!

```jsx
import AreaChart from '@igloo-ui/area-chart';

const nFormatter = (num) => {
  const lookup = [
    { value: 1, symbol: '' },
    { value: 1e3, symbol: 'k' },
    { value: 1e6, symbol: 'M' },
    { value: 1e9, symbol: 'B' },
    { value: 1e12, symbol: 'T' },
  ];
  const digits = 2;
  const rx = /\.0+$|(\.[0-9]*[1-9])0+$/;
  const item = lookup
    .slice()
    .reverse()
    .find(function (item) {
      return num >= item.value;
    });
  return item
    ? (num / item.value).toFixed(digits).replace(rx, '$1') + item.symbol
    : '0';
};

<AreaChart
  scoreFormatter={nFormatter}
  dateRange={{
    start: '2022-10-01',
    end: '2022-10-07',
  }}
  dataSet={[
    {
      dateTimeStamp: '2022-10-01',
      score: 48878,
      name: 'sent',
      secondaryName: 'sent',
    },
    {
      dateTimeStamp: '2022-10-02',
      score: 49879,
      name: 'sent',
      secondaryName: 'sent',
    },
    {
      dateTimeStamp: '2022-10-03',
      score: 33587,
      name: 'sent',
      secondaryName: 'sent',
    },
    {
      dateTimeStamp: '2022-10-04',
      score: 45445,
      name: 'sent',
      secondaryName: 'sent',
    },
    {
      dateTimeStamp: '2022-10-05',
      score: 34534,
      secondaryScore: 30000,
      name: 'sent',
      secondaryName: 'sent',
    },
    {
      dateTimeStamp: '2022-10-06',
      score: 34555,
      secondaryScore: 52677,
      name: 'sent',
      secondaryName: 'sent',
    },
    {
      dateTimeStamp: '2022-10-07',
      score: 67897,
      name: 'sent',
      secondaryName: 'sent',
    },
  ]}
/>;
```

---
_Source: https://npm.io/package/@igloo-ui/area-chart · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
