Skip to content

Commit

Permalink
increase iterations, fix right text, and release notes
Browse files Browse the repository at this point in the history
  • Loading branch information
shaankhosla committed Oct 15, 2023
1 parent a4e42a7 commit 4b5e7e7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ const numberFormatterTooltip = (value: PotentialNumber): number | null => {
return null; // or some default value for other cases
};

function SankeyNode({ x, y, width, height, index, payload, containerWidth }) {
const isOut = x + width + 6 > containerWidth;
function SankeyNode({ x, y, width, height, index, payload }) {
const isOut = x + width + 6 > width;
let payloadValue = Math.round(payload.value / 1000).toString();
if (payload.value < 1000) {
payloadValue = '<1k';
Expand Down Expand Up @@ -91,8 +91,9 @@ function SankeyGraph({ style, data, compact }: SankeyProps) {
<ResponsiveContainer>
<Sankey
data={sankeyData}
node={<SankeyNode />}
node={props => <SankeyNode {...props} />}
sort={false}
iterations={1000}
nodePadding={23}
margin={{
left: 0,
Expand Down
6 changes: 6 additions & 0 deletions upcoming-release-notes/1739.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
category: Features
authors: [shaankhosla]
---

Added a Sankey chart report as an experimental feature.

0 comments on commit 4b5e7e7

Please sign in to comment.