0.0.38 • Published 6 months ago

@types/highcharts-ng v0.0.38

Weekly downloads
528
License
MIT
Repository
github
Last release
6 months ago

Installation

npm install --save @types/highcharts-ng

Summary

This package contains type definitions for highcharts-ng (https://github.com/pablojim/highcharts-ng).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/highcharts-ng.

index.d.ts

// Type definitions for highcharts-ng 0.0.8
// Project: https://github.com/pablojim/highcharts-ng
// Definitions by: Scott Hatcher <https://github.com/scatcher>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.3

import { ChartObject, IndividualSeriesOptions, Options } from "highcharts";

declare global {
    interface HighChartsNGConfig {
        options: Options;
        //The below properties are watched separately for changes.

        //Series object (optional) - a list of series using normal highcharts series options.
        series?: IndividualSeriesOptions[] | undefined;
        //Title configuration (optional)
        title?: {
            text?: string | undefined;
        } | undefined;
        //Boolean to control showng loading status on chart (optional)
        //Could be a string if you want to show specific loading text.
        loading?: boolean | string | undefined;
        //Configuration for the xAxis (optional). Currently only one x axis can be dynamically controlled.
        //properties currentMin and currentMax provied 2-way binding to the chart's maximimum and minimum
        xAxis?: {
            currentMin?: number | undefined;
            currentMax?: number | undefined;
            title?: { text?: string | undefined } | undefined
        } | undefined;
        //Whether to use HighStocks instead of HighCharts (optional). Defaults to false.
        useHighStocks?: boolean | undefined;
        //size (optional) if left out the chart will default to size of the div or something sensible.
        size?: {
            width?: number | undefined;
            height?: number | undefined;
        } | undefined;
        //function (optional) - setup some logic for the chart
        func?: ((chart: ChartObject) => void) | undefined;
        //no data text (optional) to show if all series are empty
        noData?: string | undefined;
    }

    //Instantiated Chart
    interface HighChartsNGChart extends HighChartsNGConfig {
        //This is a simple way to access all the Highcharts API that is not currently managed by this directive.
        getHighcharts(): ChartObject;
    }
}

Additional Details

  • Last updated: Thu, 08 Jul 2021 14:22:51 GMT
  • Dependencies: @types/highcharts
  • Global values: none

Credits

These definitions were written by Scott Hatcher.

0.0.36

8 months ago

0.0.37

7 months ago

0.0.38

6 months ago

0.0.35

3 years ago

0.0.34

5 years ago

0.0.33

7 years ago

0.0.32

7 years ago

0.0.31

8 years ago

0.0.30

8 years ago

0.0.29

8 years ago

0.0.28

8 years ago

0.0.27-alpha

8 years ago

0.0.26-alpha

8 years ago

0.0.25-alpha

8 years ago

0.0.24-alpha

8 years ago

0.0.23-alpha

8 years ago

0.0.22-alpha

8 years ago

0.0.21-alpha

8 years ago

0.0.16-alpha

8 years ago

0.0.15-alpha

8 years ago