From 0aed7dce774087a2bb3d1f8f025827d6bfb3dce8 Mon Sep 17 00:00:00 2001 From: Demenech Date: Tue, 9 Apr 2024 16:57:23 -0300 Subject: [PATCH] feat: Plotly component docs improvements --- packages/components/stories/Plotly.stories.ts | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/packages/components/stories/Plotly.stories.ts b/packages/components/stories/Plotly.stories.ts index bd3e8177..7824f44f 100644 --- a/packages/components/stories/Plotly.stories.ts +++ b/packages/components/stories/Plotly.stories.ts @@ -7,6 +7,16 @@ const meta: Meta = { title: 'Components/Charts/Plotly', component: Plotly, 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; @@ -15,7 +25,7 @@ type Story = StoryObj; // More on writing stories with args: https://storybook.js.org/docs/react/writing-stories/args export const Primary: Story = { - name: 'Chart built with Plotly', + name: 'Line chart', args: { data: [ {