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

ng4-gauge-component

v1.0.6

Published

angular 4 gauge component

Readme

ng4-gauge-component

Alt text

Install

npm install ng4-gauge-component --save

Configurations

In .angular-cli.json in scripts section add "../node_modules/ng4-gauge-component/steelseries-min.js" and "../node_modules/ng4-gauge-component/tween.js"

"scripts": [
        "../node_modules/ng4-gauge-component/steelseries-min.js",
        "../node_modules/ng4-gauge-component/tween.js"
]

Using:

in your app module add GaugeModule in import section:

import { GaugeModule } from 'ng4-gauge-component/gauge/gauge.module';
...
imports: [
...
    GaugeModule
 ],

##Template:

<app-gauge
  title="Ventas"
  unit="$us"
  [uid]="'uid'"
  min="0"
  max="100"
  pointer_color="red"
  pointer_type="type9"
  threshold="50"
  led_color="green"
  [led_color_visible]="true"
  type="type4"
  [sections]="sections"
  [areas]="areas"
  [value]="55">
</app-gauge>

<app-gauge
  title="Ventas"
  unit="$us"
  [uid]="'uid2'"
  min="0"
  max="100"
  pointer_color="red"
  pointer_type="type9"
  threshold="70"
  led_color="green"
  [led_color_visible]="true"
  type="type4"
  [sections]="sections"
  [areas]="areas"
  [value]="95">
</app-gauge>

##Input:

  title:string title of gauge
  unit:string Unit of gauge
  [uid]:string unique id of gauge
  min:number min value of gauge
  max:number max value of gauge
  size:number size of gauge
  pointer_color:string 'red'|'green'|'blue'|'orange'|'yellow'|'cyan'|'magenta'|'white'|'gray'|'black'|'raith'
  pointer_type:string 'type1'|'type2'|'type3'|'type4'|'type5'|'type6'|'type7'|'type8'|'type9'|'type10'|'type11'|'type12'|'type13'|'type14'|'type15'|'type16'|
  threshold:number limit value for flashing led
  led_color_visible:boolean show flashing led
  led_color:string 'red'|'green'|'blue'|'orange'|'yellow'|'cyan'|'magenta'
  type:string 'type1'|'type2'|'type3'|'type4'
  [sections]:any array objects
      [{
        start: 0,                     //start of section
        end: 25,                      //end of section
        color: 'rgba(255, 0, 0, 0.5)' //color of section
      }]
  [areas]:any array objects
      [{
         start: 0,                     //start of area
         end: 25,                      //end of area
         color: 'rgba(255, 0, 0, 0.3)' //color of area
      }]
  [value]:number current value

##example: https://github.com/irra-b/ng4-gauge-component.

License MIT