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-gradient-progressbar

v1.0.1

Published

<p align="center"> <h1>Angular Gradient Progress Bar</h1> </p> <!-- Badges --> <p align="center"> <a href="https://www.npmjs.com/package/angular-gradient-progressbar"><img src="https://img.shields.io/npm/dw/angular-gradient-progressbar"/> </a> <

Downloads

545

Readme

Gradient Angular Progress bar

a. Advance Progress Bar

b. Simple Progress Bar

StackBlitz

StackBlitz Demo here !

Support

[email protected]

Installation

npm i angular-gradient-progressbar

Import the module inside your page module.

import { AngularGradientProgressbarModule } from "angular-gradient-progressbar";

@NgModule({
  declarations: [ ... ],
  imports: [AngularGradientProgressbarModule ]
  })
 export class YourModule {}

Usage

Inside your page.component.html

<angular-gradient-progressbar [type]="1"></angular-gradient-progressbar>

You need to specify a type of progress bar you want to use other wise it defaults to 1.

Their are two types of gradient progress bar included:

  1. Type "1": (Advance Gradient Progress Bar) Options Available for this are:

    a. Provide Value for the progress bar using value (defaults to 75) <angular-gradient-progressbar [type]="1" [value] ="75"]> </angular-gradient-progressbar>

    b.Changing tool tip text color 3 options are available

    <angular-gradient-progressbar [type]="1" lowTextColor="red"> </angular-gradient-progressbar>
    <angular-gradient-progressbar [type]="1" mediumTextColor="orange"> </angular-gradient-progressbar>
    <angular-gradient-progressbar [type]="1" highTextColor="green"> </angular-gradient-progressbar>

    c. Change Progress bar width using progressBarWidth ( default is 7).

    Note: Progress Bar width works in opposite way higher the value lower the width and vice a versa.

    <angular-gradient-progressbar [type]="1" [progressBarWidth]="7"]> </angular-gradient-progressbar>

    d. Change Number of Bar Count using barCount ( default is 7 and max is 10).

    <angular-gradient-progressbar [type]="1" [barCount] ="7"]> </angular-gradient-progressbar>

    e. You Can change the Quartile Value of the progress bar which define the number of data points to define range for (low,medium,high) using quartileValueLow and quartileValueHigh.

    <angular-gradient-progressbar [type]="1" [quartileValueLow]="4" [quartileValueHigh]="7"]> </angular-gradient-progressbar>

    Note: In the above example anything below 4 is low, between 4 and 7 is medium and anything above 7 is high. If u are changing these values make sure your aware of the barCount value as that quatile showcase can change accordingly.

    f. You can show and hide tooltip by setting showToolTip true or false ( default is true).

    <angular-gradient-progressbar [type]="1" [showToolTip]="true"]> </angular-gradient-progressbar>

  2. Type "2": (Simple CSS Gradient Progress Bar) Options Available for this are:

    a. if the type is set to 2 you can set the progress value for the second progress bar using secondValue ( default value is 75 and max is 100)

    <angular-gradient-progressbar [type]="2" [secondValue]="75"]> </angular-gradient-progressbar>

Note

Note: This project was ported from react version BlogPost to angular and converted into a Npm Package

Build

Run ng build to build the project. The build artifacts will be stored in the dist/ directory. Use the --prod flag for a production build.

Running unit tests

Run ng test to execute the unit tests via Karma.