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

@angx/ngx-circle-chart

v4.0.1

Published

Beautiful, auto-scaling circle (doughnut) progress chart for Angular, with optional gradient colouring.

Readme

@angx/ngx-circle-chart

Beautiful, auto-scaling circle (doughnut) progress chart for Angular.

Live demo · npm

Angular Circle Chart

Built directly on chart.js.

Features

  • Value label scales itself to fit the ring, at any size
  • Optional gradient colouring along the progress arc
  • Themeable colours, size and font
  • Zoneless and SSR safe — no canvas work happens on the server
  • Registers only the doughnut controller, not all of chart.js/auto
  • Standalone component, no NgModule required

Requirements

| | | |---|---| | Angular | 21 or 22 | | chart.js | ^4.4.0 |

Install

npm i @angx/ngx-circle-chart chart.js

chart.js is a peer dependency, so install it alongside.

Usage

import { Component } from '@angular/core';
import { NgxCircleChartComponent } from '@angx/ngx-circle-chart';

@Component({
  selector: 'app-stats',
  imports: [NgxCircleChartComponent],
  template: `
    <circle-chart
      [value]="6"
      [maxValue]="8"
      color="#FF4040"
      bgColor="#FADADA"
      [gradientColoring]="true"
      [dimensionsInPixels]="200"
    />
  `,
})
export class StatsComponent {}

The chart updates automatically whenever an input changes — bind a signal and it follows.

Inputs

| Input | Type | Default | Description | |---|---|---|---| | value | number | required | Current value. Clamped into [0, maxValue]. | | maxValue | number | required | Value that represents a full circle. | | color | string | '#0076ff' | Progress arc and value text. | | bgColor | string | '#e7e9ed' | Background track, and (darkened) the /maxValue text. | | gradientColoring | boolean | false | Fade the arc from color towards bgColor. | | dimensionsInPixels | number | 45 | Width and height, in CSS pixels. | | fontFamily | string | system stack | Font used for the centre label. |

Migrating from 3.x

  • Angular 21+ is required, and the workspace targets Angular 22.
  • ng2-charts is no longer needed. It was a peer dependency and pulled @angular/cdk in with it. Unless you use them elsewhere:
    npm uninstall ng2-charts
  • value and maxValue are now required inputs — the compiler will tell you if one is missing.
  • New optional fontFamily input.
  • Inputs are signal-based internally; template bindings are unchanged.

Fixed in 4.0.0

  • The chart never redrew when its inputs changed — it was built once in ngAfterViewInit.
  • Every instance emitted id="chart" and id="chart-foreground", so two charts on one page collided and the centre label was measured against the wrong element.
  • The label colour helper dropped leading zeros (#0f1e2d darkened to the invalid #51423), silently breaking the /maxValue text.
  • A value greater than maxValue produced a negative arc segment.
  • Charts were never destroyed, leaking a chart.js instance per component.
  • Canvas code ran during server-side rendering.
  • The centre label is now genuinely centred rather than offset by a hard-coded fudge factor.

Development

npm install
npm run build:lib   # build the package into dist/angx/ngx-circle-chart
npm start           # build the lib, then serve the demo app
npm test            # run the library unit tests

The demo app is deployed to GitHub Pages from master by .github/workflows/deploy-demo.yml.

Support

If you like my work and feel like buying me a coffee, please feel free to do so:

Buy Me A Coffee

License

MIT © Abhishek Singh

GitHub · Twitter