storybook/docs/snippets/web-components/histogram-story.ts.mdx
2023-01-16 12:58:08 +00:00

23 lines
409 B
Plaintext

```ts
// MyComponent.stories.ts
import type { Meta, StoryObj } from '@storybook/web-components';
const meta: Meta = {
title: 'Histogram',
component: 'histogram-component',
};
export default meta;
type Story = StoryObj;
export const Default: Story = {
args: {
dataType: 'latency',
showHistogramLabels: true,
histogramAccentColor: '#1EA7FD',
label: 'Latency distribution',
},
};
```