JSPM

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

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

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
percentColor #000 The color of the percent
textColor #000000bf The color 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