-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a826eba
commit 86d5390
Showing
7 changed files
with
238 additions
and
8 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
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
48 changes: 48 additions & 0 deletions
48
packages/polaris-viz/src/components/Grid/stories/playground/MissingGroups.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,48 @@ | ||
import type {Story} from '@storybook/react'; | ||
|
||
import {Grid} from '../../Grid'; | ||
import type {GridProps} from '../../Grid'; | ||
import {MISSING_CELL_GROUPS} from '../data'; | ||
import {META} from '../meta'; | ||
|
||
export default { | ||
...META, | ||
title: `${META.title}/Playground`, | ||
decorators: [], | ||
}; | ||
|
||
function GridCard(args: GridProps) { | ||
return ( | ||
<div | ||
style={{ | ||
height: 400, | ||
width: 800, | ||
background: 'white', | ||
borderRadius: '8px', | ||
padding: 10, | ||
}} | ||
> | ||
<Grid {...args} /> | ||
</div> | ||
); | ||
} | ||
|
||
const Template: Story<GridProps> = (args: GridProps) => { | ||
return ( | ||
<div style={{display: 'flex', gap: '20px'}}> | ||
<GridCard {...args} /> | ||
</div> | ||
); | ||
}; | ||
|
||
export const MissingGroups = Template.bind({}); | ||
|
||
MissingGroups.args = { | ||
cellGroups: MISSING_CELL_GROUPS, | ||
xAxisOptions: { | ||
label: 'Recency', | ||
}, | ||
yAxisOptions: { | ||
label: 'Frequency', | ||
}, | ||
}; |
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