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 🙏

© 2024 – Pkg Stats / Ryan Hefner

ng-g-charts

v9.0.1

Published

Google charts implementation for angular 2+ apps

Downloads

8

Readme

NgGCharts

Angular 2+ implementation for Google charts

Documentation:

Add google charts

add <script type="text/javascript" src="https://www.gstatic.com/charts/loader.js"></script> to your index.html

Install

Install ng-g-charts: npm install ng-g-charts --save

Versions

v0.0.3 -> Angular 5 | v6.0.0 -> Angular 6 | v7.0.0 -> Angular 7 | v8.0.0 -> Angular 8 | v9.0.0 -> Angular 9

Import

Import ChartModule to your app mdule and add it to imports: import { ChartModule } from 'ng-g-charts'; imports: [ ChartModule ],

Tag

Tag to be used is 'ng-g-chart'

It accepts the following inputs:

chart:

This is a mandatory field. You should pass the chart type string. The following values are valid(remember this field is not case sensitive, you can have caps too): piechart, barchart, columnchart, annotationchart, areachart, bubblechart, calendar, candlestickchart, combochart, sankey, scatterchart, steppedareachart, timeline, treemap, wordtree, table.

options:

This is an optionsl field. This takes an object of options as input.

columns:

format -> { type: 'string', id: 'element' } This is the array of columns for google.visualization.DataTable() This is mandatory if you do not input array field. This takes an array of the above formatted objects.

rows:

This is the array of rows for google.visualization.DataTable(); This is mandatory if you do not input array field. This takes an array of arrays as an input. Where each array refers to each row of data.

array:

This is the array of data for google.visualization.arrayToDataTable This is mandatory if you do not input rows and columns. This field is the input for

isMaterial:

NgGCharts supports material charts for bar and column charts. The default value of isMaterial is flase, pass it as true when you need material maps

version:

default value is 'current', you can specify a version number or 'upcoming'

lang:

default is English, if you need to change the value you can pass a valid string

NgGCharts support all the google charts except Diff Chart

Report any issues here -> https://github.com/vpotluri9/ng-g-charts/issues

Happy Coding :)