Installation
Choose your integration and build your first complete chart.
Current distribution
Install the package for your integration from your project root. The calculation engine is resolved as a dependency of the renderer.
| Package | Role | Installation |
|---|---|---|
| @neural-charts/angular | Angular component and integration. | Install this package. |
| @neural-charts/web | SVG renderer. | npm resolves it as a peer. |
| @neural-charts/core | Calculation and geometry. | Renderer dependency. |
Angular application
In a compatible Angular 22 application, install @neural-charts/angular. npm resolves the Web renderer as a peer, and Web installs Core. The adapter shares @angular/core and @angular/common with your application. Import the standalone component into your route or view. It runs without Zone.js and releases its resources when destroyed.
Example
npm install @neural-charts/angularweekly-chart.ts
import { ChangeDetectionStrategy, Component, signal } from '@angular/core';
import { NeuralChart, type ChartData, type ChartOptions } from '@neural-charts/angular';
@Component({
selector: 'app-weekly-chart',
imports: [NeuralChart],
changeDetection: ChangeDetectionStrategy.OnPush,
template: '<nc-chart [data]="data()" [options]="options()" instanceId="weekly-visits" (pointActivate)="lastPoint.set($event.id.pointId)" />'
})
export class WeeklyChart {
readonly data = signal<ChartData>({
"type": "line",
"axes": {
"x": {
"type": "linear"
},
"y": {
"type": "linear",
"includeZero": true
}
},
"series": [
{
"id": "visits",
"name": "Visits",
"data": [
{
"id": "mon",
"x": 1,
"y": 12
},
{
"id": "tue",
"x": 2,
"y": 18
},
{
"id": "wed",
"x": 3,
"y": 15
}
]
}
]
});
readonly options = signal<ChartOptions>({
"title": "Weekly activity",
"locale": "en",
"height": 360,
"tooltip": {
"enabled": true,
"crosshair": true
}
});
readonly lastPoint = signal<string | null>(null);
}Public imports
Do not link repository sources, import private dist paths or copy the calculation engine into your application.
Example
import { NeuralChart } from '@neural-charts/angular';