Angular Charts is a high-performance, developer-friendly data visualization library for modern Angular applications. Based on Unovis, it provides a suite of pre-built, Signals-powered components that make creating beautiful, responsive charts effortless.
- 🚀 Performance First: Built with Angular Signals for efficient, fine-grained reactivity.
- 🎨 Beautiful by Default: Clean, modern design with easy customization via CSS variables.
- 📦 Declarative API: Easy-to-use components that feel native to Angular.
- 📊 Versatile Data Visualization: Support for Bar, Line, Area, Donut, Bubble, and Gantt charts.
- 🛠 Powered by Unovis: Leverages the power of the battle-tested Unovis visualization framework for robust Angular charts.
Install the package via npm or pnpm:
# Using npm
npm install angular-chrts @unovis/angular @unovis/ts
# Using pnpm
pnpm add angular-chrts @unovis/angular @unovis/tsSimply import the chart component you need and start visualizing your data.
import { Component } from '@angular/core';
import { BarChartComponent } from 'angular-chrts';
@Component({
selector: 'app-root',
standalone: true,
imports: [BarChartComponent],
template: `
<ngx-bar-chart
[data]="chartData"
[categories]="categories"
[height]="400"
xLabel="Month"
yLabel="Revenue ($)"
/>
`
})
export class AppComponent {
chartData = [
{ month: 'Jan', revenue: 4500 },
{ month: 'Feb', revenue: 5200 },
{ month: 'Mar', revenue: 4800 },
];
categories = {
revenue: {
label: 'Monthly Revenue',
color: '#3b82f6'
}
};
}| Chart Type | Key Features |
|---|---|
| Line Chart | Smooth curves, markers, multi-category support. |
| Bar Chart | Grouped or stacked bars, horizontal/vertical orientation. |
| Area Chart | Stacked or overlay areas, custom gradients. |
| Donut Chart | Highly customizable central labels, legend integration. |
| Bubble Chart | 3D data visualization with customizable point sizing. |
| Gantt Chart | Specialized timeline visualization for project management. |
Angular Charts icons support extensive styling through inputs and global CSS variables. You can easily control:
- Colors and Gradients
- Axis formatting and labels
- Tooltip content and styling
- Legend positioning (Top, Bottom, Left, Right)
If you want to contribute or build the project locally:
# Install dependencies
pnpm install
# Start the example app
ng serve
# Build the library
ng build libMIT © Dennis Adriaansen