ng2-charts

  • Version 3.0.7
  • Published
  • 155 kB
  • 2 dependencies
  • ISC license

Install

npm i ng2-charts
yarn add ng2-charts
pnpm add ng2-charts

Overview

Reactive, responsive, beautiful charts for Angular based on Chart.js

Index

Variables

variable baseColors

const baseColors: number[][];

    Classes

    class BaseChartDirective

    class BaseChartDirective<
    TType extends ChartType = ChartType,
    TData = DefaultDataPoint<TType>,
    TLabel = unknown
    > implements OnDestroy, OnChanges {}

      constructor

      constructor(element: any, zone: any, themeService: ThemeService);

        property chart

        chart?: any;

          property chartClick

          chartClick: any;

            property chartHover

            chartHover: any;

              property ctx

              ctx: string;

                property data

                data?: any;

                  property datasets

                  datasets?: any;

                    property labels

                    labels?: any;

                      property legend

                      legend?: boolean;

                        property options

                        options?: any;

                          property ɵdir

                          static ɵdir: any;

                            property ɵfac

                            static ɵfac: any;

                              property plugins

                              plugins?: any;

                                property type

                                type: any;

                                  method hideDataset

                                  hideDataset: (index: number, hidden: boolean) => void;

                                    method isDatasetHidden

                                    isDatasetHidden: (index: number) => boolean | undefined;

                                      method ngOnChanges

                                      ngOnChanges: (changes: any) => void;

                                        method ngOnDestroy

                                        ngOnDestroy: () => void;

                                          method render

                                          render: () => any;

                                            method toBase64Image

                                            toBase64Image: () => string | undefined;

                                              method update

                                              update: (duration?: any) => void;

                                                class NgChartsConfiguration

                                                class NgChartsConfiguration {}

                                                  property defaults

                                                  defaults?: any;

                                                    property ɵfac

                                                    static ɵfac: any;

                                                      property ɵprov

                                                      static ɵprov: any;

                                                        property plugins

                                                        plugins?: any[];

                                                          class NgChartsModule

                                                          class NgChartsModule {}

                                                            constructor

                                                            constructor(config?: NgChartsConfiguration);

                                                              property ɵfac

                                                              static ɵfac: any;

                                                                property ɵinj

                                                                static ɵinj: any;

                                                                  property ɵmod

                                                                  static ɵmod: any;

                                                                    method forRoot

                                                                    static forRoot: (config?: NgChartsConfiguration) => any;

                                                                      class ThemeService

                                                                      class ThemeService {}

                                                                        constructor

                                                                        constructor();

                                                                          property colorschemesOptions

                                                                          colorschemesOptions: any;

                                                                            property ɵfac

                                                                            static ɵfac: any;

                                                                              property ɵprov

                                                                              static ɵprov: any;

                                                                                method getColorschemesOptions

                                                                                getColorschemesOptions: () => any;

                                                                                  method setColorschemesOptions

                                                                                  setColorschemesOptions: (options: any) => void;

                                                                                    Package Files (5)

                                                                                    Dependencies (2)

                                                                                    Dev Dependencies (0)

                                                                                    No dev dependencies.

                                                                                    Peer Dependencies (4)

                                                                                    Badge

                                                                                    To add a badge like this onejsDocs.io badgeto your package's README, use the codes available below.

                                                                                    You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/ng2-charts.

                                                                                    • Markdown
                                                                                      [![jsDocs.io](https://img.shields.io/badge/jsDocs.io-reference-blue)](https://www.jsdocs.io/package/ng2-charts)
                                                                                    • HTML
                                                                                      <a href="https://www.jsdocs.io/package/ng2-charts"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>