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

ng-hub-ui-charts

v21.0.0

Published

Angular charting library for data visualization. Fork of ngx-charts with Angular 21+ support. Part of the ng-hub-ui component family.

Readme

ng-hub-ui-charts

npm version npm downloads

Part of the ng-hub-ui family - A collection of standalone Angular component libraries

Declarative Charting Framework for Angular with Angular 21+ support!

About This Fork

ng-hub-ui-charts is a maintained fork of ngx-charts by Swimlane, updated for Angular 21+ compatibility. It's part of the ng-hub-ui family of component libraries, following the same design patterns and integration standards.

What's Different

  • Angular 21+ Support: Updated dependencies and compatibility with the latest Angular versions
  • ng-hub-ui Integration: Follows ng-hub-ui standards for consistency across the component family
  • Maintained: Regular updates and maintenance to support current Angular versions

Original Project

The original and incredible work is by Swimlane. This fork maintains their excellent charting architecture while updating for modern Angular development.

About ng-hub-ui

The ng-hub-ui family provides a collection of standalone, reusable Angular components:

All libraries follow consistent patterns and work seamlessly together.

Features

Chart Types

  • Horizontal & Vertical Bar Charts (Standard, Grouped, Stacked, Normalized)
  • Line
  • Area (Standard, Stacked, Normalized)
  • Pie (Explodable, Grid, Custom legends)
  • Bubble
  • Donut
  • Gauge (Linear & Radial)
  • Heatmap
  • Treemap
  • Number Cards
  • Sankey Diagram

Customization

  • Autoscaling
  • Timeline Filtering
  • Line Interpolation
  • Configurable Axis Labels
  • Legends (Labels & Gradient)
  • Advanced Label Positioning
  • Real-time data support
  • Advanced Tooltips
  • Data point Event Handlers
  • Works with ngUpgrade

Quick Start

Installation

npm install ng-hub-ui-charts

Usage

Import the chart component in your Angular module:

import { NgxChartsModule } from 'ng-hub-ui-charts';

@NgModule({
  imports: [NgxChartsModule]
})
export class AppModule { }

Use in your template:

<ngx-charts-bar-horizontal
  [view]="view"
  [scheme]="colorScheme"
  [results]="data"
  [xAxis]="true"
  [yAxis]="true"
  [legend]="true"
  [showXAxisLabel]="true"
  [showYAxisLabel]="true"
  xAxisLabel="Country"
  yAxisLabel="Sales">
</ngx-charts-bar-horizontal>

Documentation

Requirements

  • Angular 21+
  • RxJS 7.8+
  • TypeScript 5.9+
  • Node.js 22.16+

API & Architecture

ng-hub-ui-charts maintains full compatibility with the ngx-charts API. Charts are built using:

  • Angular for rendering and animation of SVG elements
  • D3 for mathematical functions, scales, axis and shape generators
  • Signal-based reactivity for optimal change detection

This approach provides:

  • Native Angular rendering with AoT compilation support
  • Server-side rendering (SSR) compatibility
  • Type safety and excellent IDE support

Custom Charts

Leverage various ngx-charts components to build custom charts:

import {
  ChartComponent,
  AreaChartComponent,
  AxisComponent
} from 'ng-hub-ui-charts';

Refer to custom-charts.md for detailed examples.

🤝 Contributing

We welcome contributions! Whether you've found a bug, want to improve the documentation, or add new features, your help is appreciated.

Getting Started

  1. Fork the repository
  2. Clone your fork: git clone https://github.com/your-username/ng-hub-ui-charts.git
  3. Install dependencies: yarn install
  4. Create a branch: git checkout -b feature/your-feature-name

Development

# Start development server
yarn start

# Run tests
yarn test

# Build the library
yarn build:lib:prod

# Run linting and formatting checks
yarn lint
yarn prettier:ci

Submitting Changes

  1. Code Style: Ensure your code follows the project's style (run yarn fix to auto-fix)
  2. Tests: Add tests for new features or bug fixes
  3. Commit: Use clear, descriptive commit messages
  4. Push: Push to your fork
  5. Create a Pull Request: Open a PR with a clear description of your changes

Issues

Found a bug? Please create an issue with:

  • Clear description of the problem
  • Steps to reproduce
  • Expected vs actual behavior
  • Angular and library versions

Development Guidelines

  • Follow the existing code patterns and structure
  • Maintain compatibility with Angular 21+
  • Update documentation for new features
  • Ensure all tests pass before submitting PR
  • Keep commits atomic and focused

Questions?

Feel free to open a discussion or reach out through the repository issues.

License

MIT - See LICENSE for details

Credits & Attribution

Original Project: ngx-charts by Swimlane

Swimlane is an automated cyber security operations platform. Learn more at swimlane.com

Current Maintainer: Carlos Morcillo Package: ng-hub-ui-charts Part of: ng-hub-ui family