This repository has been archived by the owner on Dec 10, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 272
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-rose): migrate package and lint * feat(legacy-plugin-chart-sankey): migrate * feat(legacy-plugin-chart-sankey-loop): migrate * feat(legacy-plugin-chart-sunburst): migrate and lint * feat(legacy-plugin-chart-treemap): migrate * feat(legacy-plugin-chart-world-map): migrate * docs: update storybooks * feat(legacy-plugin-chart-force-directed): migrate and lint * feat(legacy-plugin-chart-map-box): migrate and lint * feat(legacy-plugin-chart-histogram): migrate and lint * docs: update storybooks
- Loading branch information
Showing
124 changed files
with
1,052 additions
and
479 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
15 changes: 15 additions & 0 deletions
15
...superset-ui-demo/storybook/stories/plugins/legacy-plugin-chart-force-directed/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,15 @@ | ||
/* eslint-disable no-magic-numbers */ | ||
import React from 'react'; | ||
import { SuperChart } from '@superset-ui/chart'; | ||
import ForceDirectedChartPlugin from '@superset-ui/legacy-plugin-chart-force-directed'; | ||
import data from './data'; | ||
|
||
new ForceDirectedChartPlugin().configure({ key: 'force-directed' }).register(); | ||
|
||
export default { | ||
title: 'Legacy Chart Plugins|legacy-plugin-chart-force-directed', | ||
}; | ||
|
||
export const basic = () => ( | ||
<SuperChart chartType="force-directed" width={400} height={400} queryData={{ data }} /> | ||
); |
File renamed without changes.
28 changes: 28 additions & 0 deletions
28
...ages/superset-ui-demo/storybook/stories/plugins/legacy-plugin-chart-histogram/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 HistogramChartPlugin from '@superset-ui/legacy-plugin-chart-histogram'; | ||
import data from './data'; | ||
|
||
new HistogramChartPlugin().configure({ key: 'histogram' }).register(); | ||
|
||
export default { | ||
title: 'Legacy Chart Plugins|legacy-plugin-chart-histogram', | ||
}; | ||
|
||
export const basic = () => ( | ||
<SuperChart | ||
chartType="histogram" | ||
width={400} | ||
height={400} | ||
queryData={{ data }} | ||
formData={{ | ||
colorScheme: 'd3Category10', | ||
globalOpacity: 1, | ||
linkLength: 15, // binCount | ||
normalized: false, | ||
xAxisLabel: 'Score', | ||
yAxisLabel: 'Count', | ||
}} | ||
/> | ||
); |
File renamed without changes.
36 changes: 36 additions & 0 deletions
36
packages/superset-ui-demo/storybook/stories/plugins/legacy-plugin-chart-map-box/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,36 @@ | ||
/* eslint-disable no-magic-numbers */ | ||
import React from 'react'; | ||
import { SuperChart } from '@superset-ui/chart'; | ||
import MapBoxChartPlugin from '@superset-ui/legacy-plugin-chart-map-box'; | ||
import data from './data'; | ||
|
||
new MapBoxChartPlugin().configure({ key: 'map-box' }).register(); | ||
|
||
export default { | ||
title: 'Legacy Chart Plugins|legacy-plugin-chart-map-box', | ||
}; | ||
|
||
export const basic = () => ( | ||
<SuperChart | ||
chartType="map-box" | ||
width={400} | ||
height={400} | ||
queryData={{ data }} | ||
formData={{ | ||
allColumnsX: 'LON', | ||
allColumnsY: 'LAT', | ||
clusteringRadius: '60', | ||
globalOpacity: 1, | ||
mapboxColor: 'rgb(0, 122, 135)', | ||
mapboxLabel: [], | ||
mapboxStyle: 'mapbox://styles/mapbox/light-v9', | ||
pandasAggfunc: 'sum', | ||
pointRadius: 'Auto', | ||
pointRadiusUnit: 'Pixels', | ||
renderWhileDragging: true, | ||
viewportLatitude: 37.78711146014447, | ||
viewportLongitude: -122.37633433151713, | ||
viewportZoom: 10.026425338292782, | ||
}} | ||
/> | ||
); |
File renamed without changes.
27 changes: 27 additions & 0 deletions
27
packages/superset-ui-demo/storybook/stories/plugins/legacy-plugin-chart-rose/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,27 @@ | ||
/* eslint-disable no-magic-numbers, sort-keys */ | ||
import React from 'react'; | ||
import { SuperChart } from '@superset-ui/chart'; | ||
import RoseChartPlugin from '@superset-ui/legacy-plugin-chart-rose'; | ||
import data from './data'; | ||
|
||
new RoseChartPlugin().configure({ key: 'rose' }).register(); | ||
|
||
export default { | ||
title: 'Legacy Chart Plugins|legacy-plugin-chart-rose', | ||
}; | ||
|
||
export const basic = () => ( | ||
<SuperChart | ||
chartType="rose" | ||
width={400} | ||
height={400} | ||
queryData={{ data }} | ||
formData={{ | ||
colorScheme: 'd3Category10', | ||
dateTimeFormat: '%Y-%m-%d', | ||
numberFormat: '.3s', | ||
richTooltip: true, | ||
roseAreaProportion: false, | ||
}} | ||
/> | ||
); |
File renamed without changes.
23 changes: 23 additions & 0 deletions
23
...es/superset-ui-demo/storybook/stories/plugins/legacy-plugin-chart-sankey-loop/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,23 @@ | ||
/* eslint-disable no-magic-numbers */ | ||
import React from 'react'; | ||
import { SuperChart } from '@superset-ui/chart'; | ||
import SankeyLoopChartPlugin from '@superset-ui/legacy-plugin-chart-sankey-loop'; | ||
import data from './data'; | ||
|
||
new SankeyLoopChartPlugin().configure({ key: 'sankey-loop' }).register(); | ||
|
||
export default { | ||
title: 'Legacy Chart Plugins|legacy-plugin-chart-sankey-loop', | ||
}; | ||
|
||
export const basic = () => ( | ||
<SuperChart | ||
chartType="sankey-loop" | ||
width={400} | ||
height={400} | ||
queryData={{ data }} | ||
formData={{ | ||
colorScheme: 'd3Category10', | ||
}} | ||
/> | ||
); |
File renamed without changes.
23 changes: 23 additions & 0 deletions
23
packages/superset-ui-demo/storybook/stories/plugins/legacy-plugin-chart-sankey/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,23 @@ | ||
/* eslint-disable no-magic-numbers */ | ||
import React from 'react'; | ||
import { SuperChart } from '@superset-ui/chart'; | ||
import SankeyChartPlugin from '@superset-ui/legacy-plugin-chart-sankey'; | ||
import data from './data'; | ||
|
||
new SankeyChartPlugin().configure({ key: 'sankey' }).register(); | ||
|
||
export default { | ||
title: 'Legacy Chart Plugins|legacy-plugin-chart-sankey', | ||
}; | ||
|
||
export const basic = () => ( | ||
<SuperChart | ||
chartType="sankey" | ||
width={400} | ||
height={400} | ||
queryData={{ data }} | ||
formData={{ | ||
colorScheme: 'd3Category10', | ||
}} | ||
/> | ||
); |
File renamed without changes.
25 changes: 25 additions & 0 deletions
25
packages/superset-ui-demo/storybook/stories/plugins/legacy-plugin-chart-sunburst/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,25 @@ | ||
/* eslint-disable no-magic-numbers */ | ||
import React from 'react'; | ||
import { SuperChart } from '@superset-ui/chart'; | ||
import SunburstChartPlugin from '@superset-ui/legacy-plugin-chart-sunburst'; | ||
import data from './data'; | ||
|
||
new SunburstChartPlugin().configure({ key: 'sunburst' }).register(); | ||
|
||
export default { | ||
title: 'Legacy Chart Plugins|legacy-plugin-chart-sunburst', | ||
}; | ||
|
||
export const basic = () => ( | ||
<SuperChart | ||
chartType="sunburst" | ||
width={400} | ||
height={400} | ||
queryData={{ data }} | ||
formData={{ | ||
colorScheme: 'd3Category10', | ||
metric: 'sum__SP_POP_TOTL', | ||
secondaryMetric: 'sum__SP_RUR_TOTL', | ||
}} | ||
/> | ||
); |
File renamed without changes.
25 changes: 25 additions & 0 deletions
25
packages/superset-ui-demo/storybook/stories/plugins/legacy-plugin-chart-treemap/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,25 @@ | ||
/* eslint-disable no-magic-numbers, sort-keys */ | ||
import React from 'react'; | ||
import { SuperChart } from '@superset-ui/chart'; | ||
import TreemapChartPlugin from '@superset-ui/legacy-plugin-chart-treemap'; | ||
import data from './data'; | ||
|
||
new TreemapChartPlugin().configure({ key: 'treemap' }).register(); | ||
|
||
export default { | ||
title: 'Legacy Chart Plugins|legacy-plugin-chart-treemap', | ||
}; | ||
|
||
export const basic = () => ( | ||
<SuperChart | ||
chartType="treemap" | ||
width={400} | ||
height={400} | ||
queryData={{ data }} | ||
formData={{ | ||
colorScheme: 'd3Category10', | ||
numberFormat: '.3s', | ||
treeMapRatio: 1.618033988749895, | ||
}} | ||
/> | ||
); |
File renamed without changes.
24 changes: 24 additions & 0 deletions
24
...ages/superset-ui-demo/storybook/stories/plugins/legacy-plugin-chart-world-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,24 @@ | ||
/* eslint-disable no-magic-numbers, sort-keys */ | ||
import React from 'react'; | ||
import { SuperChart } from '@superset-ui/chart'; | ||
import WorldMapChartPlugin from '@superset-ui/legacy-plugin-chart-world-map'; | ||
import data from './data'; | ||
|
||
new WorldMapChartPlugin().configure({ key: 'world-map' }).register(); | ||
|
||
export default { | ||
title: 'Legacy Chart Plugins|legacy-plugin-chart-world-map', | ||
}; | ||
|
||
export const basic = () => ( | ||
<SuperChart | ||
chartType="world-map" | ||
width={400} | ||
height={400} | ||
queryData={{ data }} | ||
formData={{ | ||
maxBubbleSize: '25', | ||
showBubbles: true, | ||
}} | ||
/> | ||
); |
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.
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.
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.
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.
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
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.
7c8cbd8
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to following URLs: