Skip to content

Commit

Permalink
Bugfix/website/bar add legends fix (#2282)
Browse files Browse the repository at this point in the history
* fix page break on clicking 'add legends' on website/bar

---------

Co-authored-by: Nanak bandyopadhyay <nanbandyopadhyay@deloitte.com>
  • Loading branch information
Nanak360 and Nanak bandyopadhyay authored Apr 25, 2023
1 parent 408d46f commit f987fa6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions website/src/data/components/bar/props.ts
Original file line number Diff line number Diff line change
Expand Up @@ -506,16 +506,16 @@ const props: ChartProperty[] = [
shouldRemove: true,
getItemTitle: (index: number, legend: any) =>
`legend[${index}]: ${legend.anchor}, ${legend.direction}`,
svgDefaultProps: {
defaults: {
dataFrom: 'keys',
anchor: 'top-left',
anchor: 'top-right',
direction: 'column',
justify: false,
translateX: 0,
translateX: 120,
translateY: 0,
itemWidth: 100,
itemHeight: 20,
itemsSpacing: 0,
itemsSpacing: 2,
symbolSize: 20,
itemDirection: 'left-to-right',
onClick: (data: any) => {
Expand Down

0 comments on commit f987fa6

Please sign in to comment.