feat: Vega and Vega Lite components API and docs improvements

This commit is contained in:
Demenech
2024-04-09 17:13:05 -03:00
parent 059ffe4e34
commit 3d73ac422e
4 changed files with 18 additions and 6 deletions

View File

@@ -7,6 +7,16 @@ const meta: Meta = {
title: 'Components/Charts/Vega',
component: Vega,
tags: ['autodocs'],
argTypes: {
data: {
description:
"Vega's `data` prop. You can find references on how to use this prop at https://vega.github.io/vega/docs/data/",
},
spec: {
description:
"Vega's `spec` prop. You can find references on how to use this prop at https://vega.github.io/vega/docs/specification/",
},
},
};
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
export const Primary: Story = {
name: 'Chart built with Vega',
name: 'Bar chart',
args: {
data: {
table: [

View File

@@ -25,7 +25,7 @@ type Story = StoryObj<any>;
// More on writing stories with args: https://storybook.js.org/docs/react/writing-stories/args
export const Primary: Story = {
name: 'Chart built with Vega Lite',
name: 'Bar chart',
args: {
data: {
table: [