feat: Plotly component docs improvements
This commit is contained in:
parent
c202d6cfc4
commit
0aed7dce77
@ -7,6 +7,16 @@ const meta: Meta = {
|
|||||||
title: 'Components/Charts/Plotly',
|
title: 'Components/Charts/Plotly',
|
||||||
component: Plotly,
|
component: Plotly,
|
||||||
tags: ['autodocs'],
|
tags: ['autodocs'],
|
||||||
|
argTypes: {
|
||||||
|
data: {
|
||||||
|
description:
|
||||||
|
"Plotly's `data` prop. You can find references on how to use these props at https://github.com/plotly/react-plotly.js/#basic-props.",
|
||||||
|
},
|
||||||
|
layout: {
|
||||||
|
description:
|
||||||
|
"Plotly's `layout` prop. You can find references on how to use these props at https://github.com/plotly/react-plotly.js/#basic-props.",
|
||||||
|
},
|
||||||
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
export default meta;
|
export default meta;
|
||||||
@ -15,7 +25,7 @@ type Story = StoryObj<any>;
|
|||||||
|
|
||||||
// More on writing stories with args: https://storybook.js.org/docs/react/writing-stories/args
|
// More on writing stories with args: https://storybook.js.org/docs/react/writing-stories/args
|
||||||
export const Primary: Story = {
|
export const Primary: Story = {
|
||||||
name: 'Chart built with Plotly',
|
name: 'Line chart',
|
||||||
args: {
|
args: {
|
||||||
data: [
|
data: [
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user