updating highmaps

This commit is contained in:
Ozimek
2017-03-13 23:08:44 +01:00
parent 2cabef6efe
commit 7f14f2c523
+55 -2
View File
@@ -3,11 +3,64 @@
// Definitions by: Albert Ozimek <https://github.com/AlbertOzimek>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
import { Static } from 'highcharts';
import * as highcharts from 'highcharts';
import * as geojson from 'geojson';
declare module 'highcharts' {
export interface Static {
mapChart(renderTo: string | HTMLElement, options: Options, callback?: (chart: ChartObject) => void): ChartObject;
mapChart(renderTo: string | HTMLElement, options: MapOptions, callback?: (chart: highcharts.ChartObject) => void): highcharts.ChartObject;
}
export interface MapOptions {
chart?: highcharts.ChartOptions;
legend?: highcharts.LegendOptions;
mapNavigation?: Navigation;
series?: MapSeriesOptions[];
colorAxis?: ColorAxis;
title?: highcharts.TitleOptions;
}
interface MapSeriesOptions {
data?: number[] | [number, number][] | [string, number][] | highcharts.DataPoint[];
dataLabels?: MapSeriesOptionsDataLabels;
joinBy?: Array<string>;
mapData?: geojson.GeoJsonObject;
name?: string;
states?: MapSeriesOptionsStates;
tooltip?: MapSeriesOptionsTooltip;
type?: string;
}
export interface Navigation {
}
export interface MapSeriesOptionsDataLabels {
}
export interface MapSeriesOptionsStates {
}
export interface MapSeriesOptionsTooltip {
}
export interface ColorAxis {
}
}