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

ngz-charts

v1.1.1

Published

An Angular charting library powered by D3

Readme

ngz-charts

A simple angular 4+ charting library powered by d3!

Build Status

Author

About the Project

ngz-charts is an Angular 2/4+ charting library powered by Mike Bostock's D3. The hope is that Angular developers who want high quality yet simple charts can worry about the data and not the implementation of the chart to present the data.

Status of Project

Currently ngz-charts is in alpha and thus will be a work in progress. For the 1.0.0 release a handful of components will be readily available and contributions are welcome.

Status of Components

Component|Status|Release :-----:|:-----:|:-----: Bar Chart|WIP|1.0.0 Histogram|Not Started|TBD Horizontal Bar Chart|Not Started|1.0.0 Stacked Bar Chart|Not Started|TBD Horizontal Stacked Bar Chart|Not Started|TBD Scatter Plot|WIP|1.0.0 Pie Chart|Not Started|TBD Line Chart|Not Started|TBD Time Line|Not Started|1.0.0

The Components

Bar Chart

To use the bar chart component, simply import the BarchartModule into your app.module.ts file.

The component requires the user to property bind the following:

<ngz-charts-barchart
[data] - array of objects.
[x] - key of object to plot on x axis.
[y] - key of object to plot on y axis.
>
</ngz-charts-barchart>

Additionally users can change the following properties:

<ngz-charts-barchart
[width] - width of the chart in px
[height] - height of the chart in px
[margins] - an object representing padding with css margin properties (top,right,etc)
></ngz-charts-barchart>

Horizontal Bar Chart

To use the horizontal bar chart component, simply import the HorizontalBarChartModule into your app.module.ts file.

The component requires the user to property bind the following:

<ngz-charts-horizontal-bar-chart
[data] - array of objects.
[x] - key of object to plot on x axis.
[y] - key of object to plot on y axis.
>
</ngz-charts-horizontal-bar-chart>

Additionally users can change the following properties:

<ngz-charts-horizontal-bar-chart
[width] - width of the chart in px
[height] - height of the chart in px
[margins] - an object representing padding with css margin properties (top,right,etc)
></ngz-charts-horizontal-bar-chart>

Scatter Plot

To use the scatter plot component, simply import the ScatterplotModule into your app.module.ts file.

The component requires the user to property bind the following:

<ngz-charts-scatterplot
[data] - array of objects.
[x] - key of object to plot on x axis.
[y] - key of object to plot on y axis.
[dotShape] - shape to represent datum (circle)
></ngz-charts-scatterplot>

Additionally users can change the following properties:

<ngz-chart-scatterplot
[width] - width of the chart in px.
[height] - height of the chart in px.
[margins] - an object representing padding with css margin properties.
[dotSize] - size of data point.
></ngz-chart-scatterplot>

Timeline

To use the time line component, import TimelineModule into your app.module.ts file.

The component requires the user to property bind the following:

<ngz-charts-timeline
[data] - this is an array of objects with at least one property of date type.
[dateLabel] - this is the key that points to a date to plot on time line.
[dateEvent] - this is the key that provides the event name on that date.
></ngz-charts-timeline>

Additionally users can change the following:

<ngz-charts-timeline
[width] - width of the chart in px
[height] - height of the chart in px
[margins] - an object representing the padding using css margin properties.
></ngz-charts-timeline>

Contributing

If you would like to contribute, please adhere to the following rules.

  1. Show respect and courtesy to everyone.
  2. For every Pull Request (PR) please link to corresponding git issue and assign to proper reviewer.
  3. Code must follow the Google Angular Coding Standards.
  4. Code Reviews will happen with each PR between the author and the reviewer.

Feature Request and Support

For features and support please file a git issue

Browser Support

Currently ngz-charts supports Chrome, Firefox, Safari.