fix story

This commit is contained in:
Hristo Nedelkov 2023-10-06 11:08:24 +03:00
parent 6464e31b3d
commit f66a848b69
1 changed files with 3 additions and 98 deletions

View File

@ -10,7 +10,7 @@ const meta = {
}, },
decorators: [ decorators: [
Story => ( Story => (
<div style={{ height: '20vh', width: '50vh' }}> <div style={{ height: '20vh', width: '90vh' }}>
<Story /> <Story />
</div> </div>
), ),
@ -21,104 +21,9 @@ const meta = {
export default meta export default meta
type Story = StoryObj<typeof meta> type Story = StoryObj<typeof meta>
export const WithoutLabels: Story = {
args: {
data: [
{
pv: 1,
pa: 1,
},
{
pv: 0,
pa: 0,
},
{
pv: 0,
pa: 0,
},
{
pv: 0,
pa: 1,
},
{
pv: 0,
pa: 0,
},
{
pv: 1,
pa: 0,
},
{
pv: 0,
pa: 1,
},
],
},
}
export const WithMonths: Story = { export const WithMonths: Story = {
args: { args: {
data: [
{ monthlyActivity:[3, 2, 5, 4, 6, 7, 8, 0, 10, 0, 0, 3], startMonth: 0, endMonth: 12, withLabels: true
name: 'Jan',
pv: 0,
pa: 0,
},
{
name: 'Feb',
pv: 0,
pa: 0,
},
{
name: 'Mar',
pv: 0,
pa: 0,
},
{
name: 'Apr',
pv: 0,
pa: 0,
},
{
name: 'May',
pv: 0,
pa: 0,
},
{
name: 'Aug',
pv: 0,
pa: 0,
},
{
name: 'Jun',
pv: 0,
pa: 0,
},
{
name: 'Jul',
pv: 1,
pa: 0,
},
{
name: 'Sep',
pv: 0,
pa: 0,
},
{
name: 'Oct',
pv: 0,
pa: 0,
},
{
name: 'Nov',
pv: 1,
pa: 1,
},
{
name: 'Dec',
pv: 1,
pa: 1,
},
],
}, },
} }