# Animated chart icons

> 5 free animated chart icons, including Bar Chart, Bar Chart 2 and Pie Chart. For React, shadcn/ui and Lottie JSON, MIT licensed.

Bar charts, a pie chart and trending arrows for analytics and reporting. The trending-up and trending-down icons show at a glance whether a metric rose or fell, which suits KPI cards and changelogs of numbers.

All 5 icons play once on hover. Each one comes as a React component, a shadcn/ui component and a Lottie JSON animation with static SVGs, free for commercial use under the MIT license.

## Icons

- [Bar Chart](https://useanimations.com/icons/bar-chart) (`barChart`, hover-replay)
- [Bar Chart 2](https://useanimations.com/icons/bar-chart-2) (`barChart2`, hover-replay)
- [Pie Chart](https://useanimations.com/icons/pie-chart) (`pieChart`, hover-replay)
- [Trending Down](https://useanimations.com/icons/trending-down) (`trendingDown`, hover-replay)
- [Trending Up](https://useanimations.com/icons/trending-up) (`trendingUp`, hover-replay)

## Where to use them

- KPI cards with rising or falling metrics
- Analytics and reports navigation items
- Dashboard empty states
- Finance and portfolio summaries

## By interaction

- [Hover-to-play animated icons](https://useanimations.com/interactions/hover-replay) (5): Plays once on mouseenter unless reduced motion is preferred. Leaving does not stop it; entering during playback does not restart it.

## Code

```jsx
import UseAnimations from 'react-useanimations';
import trendingUp from 'react-useanimations/lib/trendingUp';

<UseAnimations animation={trendingUp} size={32} />
```

```bash
npx shadcn@latest add https://useanimations.com/r/trending-up.json
```

Every icon is also a Lottie JSON file at `https://useanimations.com/icons/<id>.json`: [Lottie icons](https://useanimations.com/lottie-icons).

## FAQ

### Which animated chart icons are included?

5 icons: Bar Chart, Bar Chart 2, Pie Chart, Trending Down and Trending Up. All of them are free for personal and commercial projects under the MIT license, with no attribution required.

### How do I use these animated chart icons in React?

Install react-useanimations, add import trendingUp from 'react-useanimations/lib/trendingUp' and render <UseAnimations animation={trendingUp} size={32} />. The icon plays its hover replay interaction and follows the text color. With shadcn/ui, run npx shadcn@latest add https://useanimations.com/r/trending-up.json instead.

### Can I use these animated chart icons without React?

Yes. Each icon is a Lottie JSON file at https://useanimations.com/icons/<id>.json (for example https://useanimations.com/icons/trending-up.json), playable with lottie-web, lottie-ios, lottie-android or Flutter's lottie package; static SVGs are on each icon page. None of them use expressions, so lottie-web's light build is enough.

## More categories

- [Animated alert icons](https://useanimations.com/categories/alerts) (5)
- [Animated notification bell icons](https://useanimations.com/categories/notifications) (4)
- [Animated navigation and arrow icons](https://useanimations.com/categories/navigation) (34)
- [Animated action icons](https://useanimations.com/categories/action) (64)
- [Animated file, folder and user icons](https://useanimations.com/categories/content) (22)
- [Animated form control icons](https://useanimations.com/categories/form) (3)
- [Animated media player icons](https://useanimations.com/categories/media) (28)
- [Animated text editing icons](https://useanimations.com/categories/text-editing) (10)
- [Animated communication icons](https://useanimations.com/categories/communication) (13)
- [Animated device icons](https://useanimations.com/categories/devices) (12)
- [Animated weather icons](https://useanimations.com/categories/weather) (16)
- [Animated map and location icons](https://useanimations.com/categories/maps-location) (9)
- [Animated e-commerce icons](https://useanimations.com/categories/commerce) (11)
- [Animated developer icons](https://useanimations.com/categories/development) (9)
- [Animated design and layout icons](https://useanimations.com/categories/design-layout) (10)
- [Animated shape and math icons](https://useanimations.com/categories/shapes-math) (8)
- [Animated loading icons](https://useanimations.com/categories/loading) (5)
- [Animated social media icons](https://useanimations.com/categories/social-media) (22)
- [More animated icons](https://useanimations.com/categories/other) (10)

HTML version: https://useanimations.com/categories/charts
