Skip to content

Commit

Permalink
fix: reinvestigate margin misalignment error
Browse files Browse the repository at this point in the history
  • Loading branch information
dv-usama-ansari committed Nov 20, 2023
1 parent 358ee11 commit 280fe05
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/vis/violin/ViolinVis.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ export function ViolinVis({ config, columns, scales, dimensions, selectedList, s
const innerLayout: Partial<Plotly.Layout> = {
showlegend: true,
legend: {
// @ts-ignore
itemclick: false,
itemdoubleclick: false,
},
Expand All @@ -84,7 +83,7 @@ export function ViolinVis({ config, columns, scales, dimensions, selectedList, s
shapes: [],
};

setLayout((prev: Partial<Plotly.Layout>) => ({ ...prev, ...beautifyLayout(traces, innerLayout, prev, true) }));
setLayout((prev) => ({ ...prev, ...beautifyLayout(traces, innerLayout, prev, true) }));
}, [traces]);

return (
Expand Down

0 comments on commit 280fe05

Please sign in to comment.