0.0.5 • Published 5 years ago
ngx-multi-gauge v0.0.5
Sample Image
Install
- install d3
npm install d3
install ngx-multi-gauge
npm install ngx-multi-gauge
Usage
Setting
import { NgxMultiGaugeComponent } from "ngx-multi-gauge"; // In your App's module: declarations: [ NgxMultiGaugeComponent ]
Use
// app.html <NgxMultiGauge class="chart" [rawData] = "data2"></NgxMultiGauge>
// app.ts export class AppComponent { data2: Array<any>; constructor() { this.data2 = [ { data_name : 'prePro' , title : '전처리', value : 50 }, { data_name : 'cantPro', title : '비처리', value : 60 }, { data_name : 'aftPro' , title : '후처리', value : 80 }, ]; } }
Properties
- data_name : Name of the data that you actually use.
- title : Name to show on the chart
value : Actual values to be expressed in the chart
Further
- Custom Able
- Color
- Bar_bg_color
- Line_color
- Radius value
- Angle_max
- Total_value show/hide
- Line Width
- List Margin
- Center Circle Size
- Color