@expertbridge-ui/legacy-plugin-chart-country-map
TypeScript icon, indicating that this package has built-in type declarations

2.0.0 • Public • Published

@expertbridge-ui/legacy-plugin-chart-country-map

Version David (path)

This plugin provides Country Map for Expertbridge.

Usage

Configure key, which can be any string, and register the plugin. This key will be used to lookup this chart throughout the app.

import CountryMapChartPlugin from '@expertbridge-ui/legacy-plugin-chart-country-map';

new CountryMapChartPlugin().configure({ key: 'country-map' }).register();

Then use it via SuperChart. See storybook for more details.

<SuperChart
  chartType="country-map"
  width={600}
  height={600}
  formData={...}
  queriesData={[{
    data: {...},
  }]}
/>

Update Map

To update the country maps or add a new country, run scripts in the Jupyter notebook scripts/Country Map GeoJSON Generator.ipynb.

pip install jupyter notebook
jupyter notebook

Dependencies (5)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i @expertbridge-ui/legacy-plugin-chart-country-map

    Weekly Downloads

    0

    Version

    2.0.0

    License

    Apache-2.0

    Unpacked Size

    41.6 MB

    Total Files

    166

    Last publish

    Collaborators

    • priyank.singh