JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 7
  • Score
    100M100P100Q51563F
  • License MIT

A lightweight plugin to render a simple, animated circular progress bar.

Package Exports

  • ngx-i24-circular-progress
  • ngx-i24-circular-progress/package.json

Readme

NgxI24CircularProgress

Lightweight plugin to render simple, animated and retina optimized pie charts

Features

  • highly customizable
  • very easy to implement
  • DEMO

Get started

Installation

$ npm i ngx-i24-circular-progress@latest

Example

TS
Module
import { NgxI24CircularProgressModule } from 'ngx-i24-circular-progress';
@NgModule({
  declarations: [ AppComponent ],
  imports: [BrowserModule, NgxI24CircularProgressModule  ],
  bootstrap: [AppComponent]
})
export class AppModule { }
Component
import { Component } from '@angular/core';
@Component({
 selector: 'app-root',
 templateUrl: './app.component.html',
 styleUrls: ['./app.component.scss']
})
export class AppComponent {
 option = {
   primaryColor: '#0495fc',
   secondaryColor: '#191919',
   percentColor: '#fff',
   textColor: '#ffffffbf',
   percent: 75,
   text: 'html',
   circleRadius: 70
 };
HTML
<ngx-i24-circular-progress [option]="option"></ngx-i24-circular-progress>

Options

Property (Type) Default Description
primaryColor #0495fc The color of the active bar
secondaryColor #191919 The color of the inactive bar
strokeWidth 2 The stroke width of the circle
dotWidth 5 The width and the height of the dot
numberColor #000 The color of the number
percentColor #000 The color of the percent sign
textColor #000000bf The color of the text
numberFontSize '2.5em' The font size of the number
percentFontSize '0.5em' The font size of the percent sign
textFontSize '0.75em' The font size of the text
percent 50 The value must be between 0 - 100
text 'css' -
circleRadius 70 The radius of the circle

Copyright (c) 2022 Yaseen Alrefaee, contributors. Released under the MIT