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

@rm-graph/angular

v0.1.3

Published

RM-Graphs Angular - Angular components for RM-Graphs charting library

Readme

@rm-graph/angular

RM-Graphs Angular - Angular components for RM-Graphs charting library.

Installation

npm install @rm-graph/angular
# or just the core for direct usage
npm install @rm-graph/core

scichart is automatically installed as a dependency!

Usage Options

Option 1: Using Core Library Directly (Recommended)

The most reliable approach is to use the core library directly in your Angular components:

import { Component, ElementRef, ViewChild, AfterViewInit, OnDestroy } from '@angular/core';
import {
  LineChart,
  createLineChart,
  type SeriesData,
} from '@rm-graph/core';

@Component({
  selector: 'app-chart',
  standalone: true,
  template: `<div #chartContainer style="width: 100%; height: 400px;"></div>`
})
export class ChartComponent implements AfterViewInit, OnDestroy {
  @ViewChild('chartContainer') chartRef!: ElementRef<HTMLDivElement>;
  private chart: LineChart | null = null;

  chartData: SeriesData[] = [
    { name: 'Sales', data: [100, 150, 120, 180].map((y, x) => ({ x, y })) }
  ];

  async ngAfterViewInit(): Promise<void> {
    this.chart = await createLineChart(this.chartRef.nativeElement, {
      theme: 'dark',
      series: this.chartData,
      xAxis: { title: 'Month' },
      yAxis: { title: 'Revenue' },
    });
  }

  ngOnDestroy(): void {
    this.chart?.destroy();
  }

  // Update data dynamically
  updateData(newData: SeriesData[]): void {
    this.chart?.setData(newData);
  }

  // Change theme
  setTheme(theme: string): void {
    this.chart?.setOptions({ theme });
  }
}

Option 2: Using Angular Components (Standalone)

Import the pre-built Angular components:

import { Component } from '@angular/core';
import { LineChartComponent, BarChartComponent, AreaChartComponent } from '@rm-graph/angular';

@Component({
  selector: 'app-dashboard',
  standalone: true,
  imports: [LineChartComponent, BarChartComponent, AreaChartComponent],
  template: `
    <sui-line-chart
      [series]="lineData"
      height="400px"
      theme="dark"
      xAxisTitle="Month"
      yAxisTitle="Revenue"
      [lineWidth]="2"
      [showPoints]="true"
      (ready)="onChartReady($event)"
    />
  `
})
export class DashboardComponent {
  lineData = [
    { name: 'Sales', data: [100, 150, 120, 180].map((y, x) => ({ x, y })) }
  ];

  onChartReady(chart: any) {
    console.log('Chart ready!', chart);
  }
}

Components

<sui-line-chart>

| Input | Type | Default | Description | |-------|------|---------|-------------| | series | SeriesData[] | [] | Chart data | | width | string | '100%' | Chart width | | height | string | '400px' | Chart height | | theme | string \| ThemeConfig | - | Theme | | xAxisTitle | string | - | X-axis title | | yAxisTitle | string | - | Y-axis title | | lineWidth | number | 2 | Line thickness | | showPoints | boolean | false | Show data points | | animation | boolean | true | Enable animations |

| Output | Type | Description | |--------|------|-------------| | ready | EventEmitter<LineChart> | Emitted when chart is ready | | chartError | EventEmitter<Error> | Emitted on error |

<sui-bar-chart>

| Input | Type | Default | Description | |-------|------|---------|-------------| | series | SeriesData[] | [] | Chart data | | stacked | boolean | false | Stack bars | | barWidth | number | 0.7 | Bar width (0-1) | | borderRadius | number | 0 | Border radius |

<sui-area-chart>

| Input | Type | Default | Description | |-------|------|---------|-------------| | series | SeriesData[] | [] | Chart data | | fillOpacity | number | 0.5 | Fill opacity (0-1) | | lineWidth | number | 2 | Line thickness |

Chart Types Available from Core

  • createLineChart - Line charts with optional points
  • createBarChart - Bar/column charts with grouping and stacking
  • createAreaChart - Area charts with gradient fills

Theming

import { getThemeManager } from '@rm-graph/core';

// Built-in themes: 'light', 'dark', 'modern', 'midnight'

// Register custom theme
getThemeManager().registerTheme({
  name: 'custom',
  backgroundColor: '#1a1a2e',
  colorPalette: ['#ff6b6b', '#4ecdc4'],
  // ...
});

See main README for full documentation.