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.

Integration packages
PackageRoleInstallation
@neural-charts/angularAngular component and integration.Install this package.
@neural-charts/webSVG renderer.npm resolves it as a peer.
@neural-charts/coreCalculation 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/angular
weekly-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);
}

See where to save each file and how to run the demo

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';

Troubleshooting