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

angular-d3-graphs

v0.0.11

Published

This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 10.0.4.

Downloads

129

Readme

AngularD3Graphs

This project was generated with Angular CLI version 10.0.4.

Dependencies

  • d3: ^5.16.0,
  • @types/d3: ^5.7.2

Module

Import AngularD3GraphLibModule module in AppModule

HEAT MAP

HEAT MAP This component will generate a heat map. It has following properties:

  • url [Input: string] : The url to a csv file, can be remote or local, default url is https://raw.githubusercontent.com/diveshpanwar/d3-graph-data/master/heat-map.csv
  • description [Input: string] : The description to show on the heat map
  • title [Input: string] : the title of the heat map
  • margin [Input: objet] : the margins for the svg heat map, default { top: 80, right: 25, bottom: 30, left: 40 };
  • width [Input: number] : the width of the heat map, default 400 - margin-left - margin-right
  • height [Input: number] : the height of the heat map, default 460 - margin.top - margin.bottom
  • groupColumnName [Input: string] : the group column name in the csv data, default 'group' CASE SENSITIVE
  • variableColumnName [Input: string] : the variable column name in the csv data, default 'variable' CASE SENSITIVE
  • valueColumnName [Input: string] : the value column name in the csv data, default 'value' CASE SENSITIVE
  • xlow [Input: number] : the number less than or equal to lowest value x can assume, default 0
  • xhigh [Input: number] : the number higher than or equal to highest value x can assume, default width
  • ylow [Input: number] : the number less than or equal to lowest value y can assume, default height
  • yhigh [Input: number] : the number higher than or equal to highest value y can assume, default 0
  • tooltipLabel [Input: string] : the prefix of the tooltip

Bar Chart

Bar Chart This component will generate a bar chart. It has following properties:

  • url [Input: string] : The url to a csv file, can be remote or local, default csv url is https://raw.githubusercontent.com/diveshpanwar/d3-graph-data/master/bar-chart.csv
  • description [Input: string] : The description to show on the bar chart
  • title [Input: string] : the title of the bar chart
  • margin [Input: objet] : the margins for the svg bar chart, default { top: 80, right: 25, bottom: 30, left: 40 };
  • width [Input: number] : the width of the bar chart, default 400 - margin-left - margin-right
  • height [Input: number] : the height of the bar chart, default 460 - margin.top - margin.bottom
  • barColor [Input: string] : Hexa Decimal Code or color Name for the color of each bar, default color is '#432456'
  • keyColumnName [Input: string] : the key column name in the csv data, default 'Country' CASE SENSITIVE
  • valueColumnName [Input: string] : the value column name in the csv data, default 'Value' CASE SENSITIVE
  • xlow [Input: number] : the number less than or equal to lowest value x can assume, default 0
  • xhigh [Input: number] : the number higher than or equal to highest value x can assume, default width
  • ylow [Input: number] : the number less than or equal to lowest value y can assume, default 0
  • yhigh [Input: number] : the number higher than or equal to highest value y can assume, default 13000

Bubble Chart

Bubble Chart This component will generate a bubble chart. It has following properties:

  • url [Input: string] : The url to a csv file, can be remote or local, default csv url is https://raw.githubusercontent.com/diveshpanwar/d3-graph-data/master/bubble-chart.csv
  • columnOneName [Input: string] : the name of the first column name in the csv, default gdpPercap - Refer to the sample csv
  • columnTwoName [Input: string] : the name of the second column name in the csv, default lifeExp - Refer to the sample csv
  • columnThreeName [Input: string] : the name of the third column name in the csv, default pop - Refer to the sample csv
  • columnFourName [Input: string] : the name of the fourth column name in the csv, default continent [Also used as domainList]- Refer to the sample csv
  • columnFiveName [Input: string] : the name of the fifth column name in the csv, default country - Refer to the sample csv
  • description [Input: string] : The description to show on the bubble chart
  • title [Input: string] : the title of the bubble chart
  • margin [Input: objet] : the margins for the svg bubble chart, default { top: 80, right: 25, bottom: 30, left: 40 };
  • width [Input: number] : the width of the bubble chart, default 400 - margin-left - margin-right
  • height [Input: number] : the height of the bubble chart, default 460 - margin.top - margin.bottom
  • xlow [Input: number] : the number less than or equal to lowest value x can assume, default 0
  • xhigh [Input: number] : the number higher than or equal to highest value x can assume, default width
  • ylow [Input: number] : the number less than or equal to lowest value y can assume, default 0
  • yhigh [Input: number] : the number higher than or equal to highest value y can assume, default 13000
  • xTooltipLabel [Input: string] : Prefix of tooltip for Value x, default Country
  • yTooltipLabel [Input: string] : Prefix of tooltip for Value y, default Life Expectency
  • domainList [Input: string[] ] : the array fo strings to define the color scheme of the bubbles, default column four unique values, continent - Refer to the sample csv

Pie Chart

Pie Chart This component will generate a pie chart. It has following properties:

  • url [Input: string] : The url to a json file, can be remote or local, default json url is https://raw.githubusercontent.com/diveshpanwar/d3-graph-data/master/pie-chart.json
  • description [Input: string] : The description to show on the pie chart
  • title [Input: string] : the title of the pie chart
  • margin [Input: objet] : the margins for the svg pie chart, default 40
  • width [Input: number] : the width of the pie chart, default 450
  • height [Input: number] : the height of the pie chart, default 450
  • prefixLabelName [Input: string] : the prefix to appear before the labels on the slices, default null
  • radius [Input: number] : the height of the pie chart, default 20

Density Chart

Density Chart This component will generate a density chart. It has following properties:

  • url [Input: string] : The url to a json file, can be remote or local, default json url is https://raw.githubusercontent.com/diveshpanwar/d3-graph-data/master/density-chart.csv
  • description [Input: string] : The description to show on the density chart
  • title [Input: string] : the title of the density chart
  • margin [Input: objet] : the margins for the svg density chart, default { top: 30, right: 30, bottom: 30, left: 50 }
  • width [Input: number] : the width of the density chart, default 460 - this.margin.left - this.margin.right
  • height [Input: number] : the height of the density chart, default 400 - this.margin.top - this.margin.bottom
  • columnName [Input: string] : the columnName of the data passed, default 'price'
  • fillColor [Input: string] : the color of the density chart, default '0da6ff'