1.1.0-2 • Published 12 months ago

@cyberjs.on/ngen-charts v1.1.0-2

Weekly downloads
-
License
MPL-2.0
Repository
gitlab
Last release
12 months ago

NGenCharts

Installing

$ npm i @cyberjs.on/ngen-charts --save

Usage

Include the module into imports metadata key of NgModule decorator of your application importing NGenChartsModule from @cyberjs.on/ngen-charts, like that.

import { NGenChartsModule } from '@cyberjs.on/ngen-charts';

@NgModule({
    imports: [
        NGenChartsModule
    ]
})
export class MyModule() { }

Donut

<lib-donut-chart
  [rotateDegrees]="[-]<0 to 180>"
  [radius]="'<value>'"
  [borderWidth]="'<value>'"
  [sectors]="[
    {
      proportionalPart: 1,
      ngClass: {
        class-name-1: <true or false>,
        class-name-2: <true or false>
      }
    },
    {
      proportionalPart: 2,
      ngClass: [
        '<css-class-name-1>', 
        '<css-class-name-2>'
      ]
    },
    {
      proportionalPart: 3,
      ngClass: 'css-class-name'
    }
  ]"
  [strokeSettings]="{
    width: '<value>',
    bindOn: ['sectors', 'outer', 'inner']
  }"
></lib-donut-chart>