UNPKG

react-typescript-datamaps

Version:

react wrapper component for the 'datamaps' library (Interactive maps for data visualizations). Out of the box it includes advance arc-attack-plugin and demo mode.

30 lines (29 loc) 884 B
/// <reference types="d3" /> import React from 'react'; interface Props { arc?: any[]; arcOptions?: DataMapArcConfigOptions; attacks?: any[]; bubbleOptions?: DataMapBubblesConfigOptions; bubbles?: any; data?: any; graticule?: boolean; height?: null | number | string; labels?: boolean; responsive?: boolean; style?: any; updateChoroplethOptions?: any; width?: null | number | string; geographyConfig?: DataMapGeographyConfigOptions; fills?: any; setProjection?: (element: HTMLElement, options: DataMapOptions) => DataMapProjection; done?: (datamap: { svg: d3.Selection<any>; options: DataMapOptions; path: d3.geo.Path; projection: d3.geo.Projection; }) => void; restProps?: any; } export declare const DataMapsWrapper: React.FC<Props>; export {};