Skip to content

Commit

Permalink
Add test data
Browse files Browse the repository at this point in the history
  • Loading branch information
susiekims committed Jan 25, 2024
1 parent 1ff96f2 commit cc30005
Showing 1 changed file with 45 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type {Story} from '@storybook/react';

import {LineChart, LineChartProps} from '../../LineChart';
import {randomNumber} from '../../../Docs/utilities';
import {generateDataSet, randomNumber} from '../../../Docs/utilities';
import {
formatLinearXAxisLabel,
formatLinearYAxisLabel,
Expand Down Expand Up @@ -1023,3 +1023,47 @@ LinearComparisonTooltip.args = {
},
],
};

export const LongLegend: Story<LineChartProps> = Template.bind({});

LongLegend.args = {
data: [
{
name: 'Garlic & Herb Biltong Slab - Family Size Super Pack',
data: generateDataSet(10, 'dates'),
},
{
name: 'Chili Biltong Slab 8oz',
data: generateDataSet(10, 'dates'),
},
{
name: 'Sale',
data: generateDataSet(10, 'dates'),
},
{
name: '1',
data: generateDataSet(10, 'dates'),
},
{
name: 'Smokehouse Biltong',
data: generateDataSet(10, 'dates'),
},
{
name: 'Traditional Biltong Slab 8oz',
data: generateDataSet(10, 'dates'),
},
{
name: '2',
data: generateDataSet(10, 'dates'),
},
{
name: 'A Very Very Very Very Very Long Titled Biltong',
data: generateDataSet(10, 'dates'),
},

{
name: '3',
data: generateDataSet(10, 'dates'),
},
],
};

0 comments on commit cc30005

Please sign in to comment.