storybook/docs/snippets/angular/histogram-story.ts.mdx
2022-11-17 16:33:22 +01:00

29 lines
683 B
Plaintext

```ts
// Histogram.stories.ts
import type { Meta, StoryObj } from '@storybook/angular';
import { HistogramComponent } from './histogram.component';
const meta: Meta<HistogramComponent> = {
/* 👇 The title prop is optional.
* See https://storybook.js.org/docs/7.0/angular/configure/overview#configure-story-loading
* to learn how to generate automatic titles
*/
title: 'Histogram',
component: HistogramComponent,
};
export default meta;
type Story = StoryObj<HistogramComponent>;
export const Default: Story = {
args: {
dataType: 'latency',
showHistogramLabels: true,
histogramAccentColor: '#1EA7FD',
label: 'Latency distribution',
},
};
```