1.2.0 • Published 6 years ago

ys-pie v1.2.0

Weekly downloads
4
License
MIT
Repository
github
Last release
6 years ago

YsDashboard Code Coverage Build Code Coverage

This component is only for angular N framework, not for angularJS

Demo Page (I use htmlpreview to show the page, so it may take some time to load the page.)

ys-pie

Pie / Spin / Speed / Measure UI

Required Libs

  • @angular/core
  • @angular/common

Usage

1. Import module

import { YsPieModule } from 'ys-pie';
@NgModule({
  declarations: [
    AppComponent
  ],
  imports: [
    YsPieModule,
    BrowserModule,
  ],
  providers: [],
  bootstrap: [AppComponent]
})

2. Use component

<ys-pie [size]="100" [percentage]="20" [direction]="'top'" [color]="'#23a7d7'" [label]="20"></ys-pie>

API Document

AttributeTypeDescription
sizeinteger numberThe size of the component. It will change both height and width with same value.
percentagenumber (0-100)The UI will be filled color based on the percentage.
colorHex Color CodesDefine a filled color.
labelstringThe label will be showed on the center of UI
directionstring: bottom topThe start point will be bottom or top.
1.2.0

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago