Skip to content

Commit

Permalink
add legendOrientation to default args in storybook
Browse files Browse the repository at this point in the history
  • Loading branch information
annacmc committed Dec 18, 2024
1 parent 8fb265d commit ff2a881
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ Default.args = {
data: data[ 0 ].data,
seriesLabel: data[ 0 ].group,
showLegend: false,
legendOrientation: 'horizontal',
};

export const WithTooltips = Template.bind( {} );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
}

.legend-item-label {
color: var(--jp-gray-80);
color: var(--jp-gray-80, #2c3338);
display: flex;
align-items: center;
gap: 0.5rem;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ Default.args = {
margin: { top: 20, right: 20, bottom: 30, left: 40 },
data: sampleData,
showLegend: false,
legendOrientation: 'horizontal',
};

// Story with single data series
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ export const Default: StoryType = {
theme: 'default',
innerRadius: 0,
showLegend: false,
legendOrientation: 'horizontal',
},
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ Default.args = {
thickness: 0.4,
clockwise: true,
showLegend: false,
legendOrientation: 'horizontal',
};

export const WithTooltips = Template.bind( {} );
Expand Down

0 comments on commit ff2a881

Please sign in to comment.