0.0.5 • Published 5 years ago

ngx-multi-gauge v0.0.5

Weekly downloads
26
License
-
Repository
-
Last release
5 years ago

Sample Image

Imgur

Install

  1. install d3
    npm install d3
  2. install ngx-multi-gauge

    npm install ngx-multi-gauge

Usage

  1. Setting

    import { NgxMultiGaugeComponent } from "ngx-multi-gauge";
    
    // In your App's module:
    declarations: [
      NgxMultiGaugeComponent
    ]
  2. 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
0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago