npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

scichart-angular

v2.0.0

Published

Angular wrapper for SciChart JS

Readme

SciChart.Angular - Official Angular Component Wrapper for SciChart.js: High Performance JavaScript Chart Library

SciChart.angular requires core SciChart.js package to work and uses it as a peer dependency.

The SciChartAngular itself is MIT licensed, find the core library licensing info at https://www.scichart.com/licensing-scichart-js/.

What does SciChart.Angular do?

  • Neatly wraps up the lifecycle of SciChart.js into an Angular component to ensure proper initialisation and memory cleanup.
  • Provides a number of ways to configure a chart (via JSON config or initialization function)
  • Can be used to create complex dashboards linking multiple charts (demos are coming soon!)

Getting Started

Prerequisites

  • angular 17.1+
  • scichart 6.0.0+ (for scichart 3.x-5.x use scichart-angular 1.x)

Installing

npm install scichart scichart-angular

Loading required WASM dependencies

SciChart.js requires WebAssembly binaries to work, and fetches them asynchronously at runtime.

Since v6 the engine is modular — a core plus side modules it loads on demand — so the payload you deploy is the whole _wasm directory, not a single file. One binary now carries both the 2D and the 3D engine (scichart.wasm), and further modules are fetched as they are needed, such as scichart-charting3d.wasm for the first 3D chart. There are also -nosimd and -64 variants, picked at runtime according to what the browser supports.

Copy the directory rather than naming files individually, so a new variant or module never breaks your build. In angular.json:

"assets": [
  "src/favicon.ico",
  "src/assets",
  {
    "glob": "**/*.wasm",
    "input": "node_modules/scichart/_wasm",
    "output": "/"
  }
]

Find detailed info at Deploying WASM.

NOTE .data files were removed in v4, and the separate scichart2d.wasm / scichart3d.wasm pair was replaced by the single union binary in v6.

By default SciChartAngular applies the following configuration:

SciChartSurface.configure({
    wasmUrl: "/scichart.wasm",
});

This is a single call: SciChart3DSurface.configure() writes the same setting, so calling both would overwrite the first and point the engine at a file the union build does not ship. Your own SciChartSurface.configure(...) or loadWasmFromCDN() call runs after this default and takes precedence.

Using

There are two components, and each takes a different way of describing the chart.

  • scichart-angular — takes an initialization function via [initChart]. This is the primary component for code-first apps and produces the smallest bundles.
  • scichart-angular-declarative — takes a chart definition via [config] and creates the chart with the Builder API. The Builder is only bundled by apps that use this component.

With Config

Pass a config object that will be used to generate a chart via the Builder API.

app.component.html

<scichart-angular-declarative [config]="config"></scichart-angular-declarative>

app.component.ts

import { Component } from '@angular/core';
import { RouterOutlet } from '@angular/router';
import { ScichartAngularDeclarativeComponent } from 'scichart-angular';

import {
  EAxisType,
  EChart2DModifierType,
  ESeriesType,
} from "scichart";
import type { ISciChart2DDefinition } from "scichart";

@Component({
  selector: 'app-root',
  standalone: true,
  imports: [RouterOutlet, ScichartAngularDeclarativeComponent],
  templateUrl: './app.component.html',
  styleUrl: './app.component.css'
})
export class AppComponent {
  title = 'scichart-angular-app';

  config: ISciChart2DDefinition = {
    xAxes: [{ type: EAxisType.NumericAxis }],
    yAxes: [{ type: EAxisType.NumericAxis }],
    series: [
      {
        type: ESeriesType.SplineMountainSeries,
        options: {
          fill: "#3ca832",
          stroke: "#eb911c",
          strokeThickness: 4,
          opacity: 0.4
        },
        xyData: { xValues: [1, 2, 3, 4], yValues: [1, 4, 7, 3] }
      }
    ],
    modifiers: [
      { type: EChart2DModifierType.ZoomPan, options: { enableZoom: true } },
      { type: EChart2DModifierType.MouseWheelZoom },
      { type: EChart2DModifierType.ZoomExtents }
    ]
  }
}
Type registration

A chart definition names its parts as strings — { type: "LineSeries" }. A string cannot pull code into a bundle, so since SciChart v6 the Builder API registers nothing on import: the types a definition names have to be registered, or building it fails with Nothing registered for RenderableSeries:LineSeries.

scichart-angular-declarative handles this for you by calling registerAllTypes(), so any definition works with no setup. The trade-off is bundle size: the whole type universe is included. If that matters, use [initChart] instead, or build the chart yourself and register only the types you use:

import { build2DChart } from "scichart";
import { registerNumericAxis } from "scichart/Builder/register/axes";
import { registerSplineMountainSeries } from "scichart/Builder/register/series";
import { registerXyDataSeries } from "scichart/Builder/register/dataSeries";

registerNumericAxis();
registerSplineMountainSeries();
registerXyDataSeries();

With Initialization Function

Alternatively you can pass a function which should create a surface on the provided root element.

app.component.html

<scichart-angular [initChart]="drawExample"></scichart-angular>

app.component.ts

import { Component } from '@angular/core';
import { RouterOutlet } from '@angular/router';
import { ScichartAngularComponent } from 'scichart-angular';

import {
  SciChartSurface,
  NumericAxis,
  SplineMountainRenderableSeries,
  XyDataSeries,
  MouseWheelZoomModifier,
  ZoomPanModifier,
  ZoomExtentsModifier,
} from "scichart";

@Component({
  selector: 'app-root',
  standalone: true,
  imports: [RouterOutlet, ScichartAngularComponent],
  templateUrl: './app.component.html',
  styleUrl: './app.component.css'
})
export class AppComponent {
  title = 'scichart-angular-app';

  drawExample = async function (rootElement) {
    const { sciChartSurface, wasmContext } = await SciChartSurface.create(rootElement);

    const xAxis = new NumericAxis(wasmContext);
    const yAxis = new NumericAxis(wasmContext);

    sciChartSurface.xAxes.add(xAxis);
    sciChartSurface.yAxes.add(yAxis);

    sciChartSurface.renderableSeries.add(
      new SplineMountainRenderableSeries(wasmContext, {
        dataSeries: new XyDataSeries(wasmContext, {
          xValues: [1, 2, 3, 4],
          yValues: [1, 4, 7, 3]
        }),
        fill: "#3ca832",
        stroke: "#eb911c",
        strokeThickness: 4,
        opacity: 0.4
      })
    );

    sciChartSurface.chartModifiers.add(
      new ZoomPanModifier({ enableZoom: true }),
      new MouseWheelZoomModifier(),
      new ZoomExtentsModifier()
    );

    return { sciChartSurface };
  }
}

NOTE Make sure that in both cases initChart and config props do not change, as they should be only used for initial chart render.

Migrating from 1.x to 2.0

  • The [config] input moved to the new scichart-angular-declarative component. Replace <scichart-angular [config]="..."> with <scichart-angular-declarative [config]="...">; all other inputs and outputs are identical. scichart-angular now requires [initChart] and throws a pointer error if it receives [config].
  • The scichart peer dependency is now v6+. One union scichart.wasm replaces the scichart2d.wasm / scichart3d.wasm pair, and the deployed payload is the whole _wasm directory. Apps staying on scichart 3.x-5.x should stay on scichart-angular 1.x.
  • moduleResolution must understand exports maps. SciChart v6 ships an exports field; set "moduleResolution": "bundler" (or node16) in tsconfig.json if you are still on the classic "node" setting.

Useful Links

Features & benefits

Onboarding

Support