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.
docs: update storybook to use new SuperChart props and convert to TS …
…(+8 squashed commits) (#127) Squashed commits: [ffdde0c] fix: dimensions [57f5334] fix: path [61191fc] docs: update remaining stories [240b171] docs: update nvd3 stories [38e2804] docs: update more storybooks [18b9401] docs: update more stories [7f8fb07] docs: update storybook to use new SuperChart props and convert to TS [2e31ddb] docs: update how superchart are used
- Loading branch information
1 parent
26d6a1f
commit 5ff04c3
Showing
72 changed files
with
1,892 additions
and
2,223 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
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
1 change: 1 addition & 0 deletions
1
...superset-ui-plugins/packages/superset-ui-plugins-demo/storybook/shared/dummyDatasource.ts
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 @@ | ||
export default { verboseMap: {} }; |
34 changes: 0 additions & 34 deletions
34
...kages/superset-ui-plugins-demo/storybook/stories/legacy-plugin-chart-calendar/Stories.jsx
This file was deleted.
Oops, something went wrong.
33 changes: 33 additions & 0 deletions
33
...kages/superset-ui-plugins-demo/storybook/stories/legacy-plugin-chart-calendar/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,33 @@ | ||
/* eslint-disable sort-keys, no-magic-numbers */ | ||
import React from 'react'; | ||
import { SuperChart } from '@superset-ui/chart'; | ||
import data from './data'; | ||
import dummyDatasource from '../../shared/dummyDatasource'; | ||
|
||
export default [ | ||
{ | ||
renderStory: () => ( | ||
<SuperChart | ||
chartType="calendar" | ||
width={400} | ||
height={400} | ||
datasource={dummyDatasource} | ||
payload={{ data }} | ||
formData={{ | ||
cellSize: 10, | ||
cellPadding: 2, | ||
cellRadius: 0, | ||
linearColorScheme: 'schemeRdYlBu', | ||
steps: 10, | ||
yAxisFormat: '.3s', | ||
xAxisTimeFormat: 'smart_date', | ||
showLegend: true, | ||
showValues: false, | ||
showMetricName: true, | ||
}} | ||
/> | ||
), | ||
storyName: 'Basic', | ||
storyPath: 'legacy-|plugin-chart-calendar|CalendarChartPlugin', | ||
}, | ||
]; |
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
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
Oops, something went wrong.