forked from apache/superset
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(legacy-plugin-chart-country-map): migrate and replace india map (a…
…pache#376) * feat(legacy-plugin-chart-country-map): migrate and replace india map with smaller file * fix: lint * chore: move files * docs: update storybook * docs: wire storybook * fix: lint
- Loading branch information
1 parent
6152db5
commit 9d3dc3e
Showing
47 changed files
with
320 additions
and
2,108,830 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
...es/superset-ui-demo/storybook/stories/plugins/legacy-plugin-chart-country-map/Stories.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
/* eslint-disable no-magic-numbers */ | ||
import React from 'react'; | ||
import { SuperChart } from '@superset-ui/chart'; | ||
import CountryMapChartPlugin from '@superset-ui/legacy-plugin-chart-country-map'; | ||
import countries from '@superset-ui/legacy-plugin-chart-country-map/esm/countries'; | ||
import { withKnobs, select } from '@storybook/addon-knobs'; | ||
import data from './data'; | ||
|
||
new CountryMapChartPlugin().configure({ key: 'country-map' }).register(); | ||
|
||
export default { | ||
title: 'Legacy Chart Plugins|legacy-plugin-chart-country-map', | ||
decorators: [withKnobs], | ||
}; | ||
|
||
export const basic = () => ( | ||
<SuperChart | ||
chartType="country-map" | ||
width={400} | ||
height={400} | ||
queryData={{ data }} | ||
formData={{ | ||
linearColorScheme: 'schemeRdYlBu', | ||
numberFormat: '.3s', | ||
selectCountry: select('Country', Object.keys(countries!), 'france', 'country'), | ||
}} | ||
/> | ||
); |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Oops, something went wrong.