storybook/docs/snippets/vue/histogram-story.mdx-3.mdx
2022-09-07 16:39:26 +01:00

30 lines
586 B
Plaintext

```md
<!-- Histogram.stories.mdx -->
import { Canvas, Meta, Story } from '@storybook/addon-docs';
import Histogram from './Histogram.vue';
<Meta title="Histogram" component={Histogram} />
export const Template = (args) => ({
components: { Histogram },
setup() {
return { args };
},
template: '<Histogram v-bind="args" />',
});
<Canvas>
<Story
name="Default"
args={{
dataType: 'latency',
showHistogramLabels: true,
histogramAccentColor: '#1EA7FD',
label: 'Latency distribution',
}} >
{Template.bind({})}
</Story>
</Canvas>
```