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

24 lines
502 B
Plaintext

```js
// Histogram.stories.js|jsx
import { Histogram } from './Histogram';
export default {
/* 👇 The title prop is optional.
* See https://storybook.js.org/docs/7.0/react/configure/overview#configure-story-loading
* to learn how to generate automatic titles
*/
title: 'Histogram',
component: Histogram,
};
export const Default = {
args: {
dataType: 'latency',
showHistogramLabels: true,
histogramAccentColor: '#1EA7FD',
label: 'Latency distribution',
},
};
```