Skip to content

Commit

Permalink
🐛 Add formatted value to Alluvial node slot
Browse files Browse the repository at this point in the history
  • Loading branch information
joao-m-santos authored and joao committed Jul 13, 2023
1 parent a8d1193 commit f164c8b
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 @@ -182,6 +182,7 @@ interface HighlightedElements {

Available for every node in the diagram. `NODE_ID` is the `value` provided in the dataset.

| Name | Type | Description |
| ------ | ---------------------------------------------- | -------------- |
| `node` | `SankeyNode<SankeyNodeProps, SankeyLinkProps>` | The node data. |
| Name | Type | Description |
| ------- | ---------------------------------------------- | --------------------------- |
| `node` | `SankeyNode<SankeyNodeProps, SankeyLinkProps>` | The node data. |
| `value` | `number \| string` | The node's formatted value. |
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,12 @@
<slot
:name="`node-text-${block.node.id}`"
:node="block.node"
:value="
formatValue(
block.node.transitionValue || block.node.value,
block.node.value
)
"
>
<lume-alluvial-node-label>
{{ block.node.label }}
Expand Down

0 comments on commit f164c8b

Please sign in to comment.