Skip to content

Commit

Permalink
Center sankey
Browse files Browse the repository at this point in the history
  • Loading branch information
andresnowak committed Dec 20, 2024
1 parent 0230170 commit be80299
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions app/sankey_chart.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,15 @@ const SankeyChart = ({ dataPath }) => {
}

return (
<div className="sankey-chart">
<Plot
data={data.data}
layout={data.layout}
config={data.config || {}} // Optional configuration
<div className="w-full max-w-2xl mx-auto flex justify-center">
<Plot
data={data.data}
layout={data.layout}
config={data.config || {}} // Optional configuration
frames={data.frames || []} // Optional animation frames
/>
</div>
);
/>
</div>
);
};

export { SankeyChart };

0 comments on commit be80299

Please sign in to comment.