
Security News
Opengrep Adds Apex Support and New Rule Controls in Latest Updates
The latest Opengrep releases add Apex scanning, precision rule tuning, and performance gains for open source static code analysis.
scichart-angular
Advanced tools
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/.
angular
17.1+scichart
3.3+npm install scichart scichart-angular
SciChart.js requires additional WASM modules to work (scichart2d.wasm
+ scichart2d.data
for instantiating SciChartSurface
and scichart3d.wasm
+ scichart3d.data
for SciChart3DSurface
).
The library will try to fetch the appropriate files asynchronously during runtime.
Find detailed info at Deploying Wasm Docs
By default SciChartAngular applies the following configuration:
SciChartSurface.configure({
wasmUrl: "/scichart2d.wasm",
dataUrl: "/scichart2d.data"
});
SciChart3DSurface.configure({
wasmUrl: "/scichart3d.wasm",
dataUrl: "/scichart3d.data"
});
There are two ways to setup SciChartAngular
.
The component requires one of [config]
or [initChart]
properties to create a chart.
Pass a config object that will be used to generate a chart via the Builder API.
app.component.html
<scichart-angular [config]="config"></scichart-angular>
app.component.ts
import { Component } from '@angular/core';
import { RouterOutlet } from '@angular/router';
import { ScichartAngularComponent } from 'scichart-angular';
import {
SciChartSurface,
NumericAxis,
XyDataSeries,
MouseWheelZoomModifier,
ZoomPanModifier,
ZoomExtentsModifier,
EChart2DModifierType,
ESeriesType,
} 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';
config = {
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 }
]
}
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,
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.
FAQs
Angular wrapper for SciChart JS
The npm package scichart-angular receives a total of 32 weekly downloads. As such, scichart-angular popularity was classified as not popular.
We found that scichart-angular demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
The latest Opengrep releases add Apex scanning, precision rule tuning, and performance gains for open source static code analysis.
Security News
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
Research
/Security News
A RubyGems malware campaign used 60 malicious packages posing as automation tools to steal credentials from social media and marketing tool users.