Adyen / lume

Lume is a component library for visual representations of data, built for Vue with D3.
https://lumedataviz.com
MIT License
37 stars 1 forks source link

Allow for slotted content in Alluvial node headers #387

Closed joao-m-santos closed 5 months ago

joao-m-santos commented 5 months ago

Feature description

The Alluvial diagram should support a way to add content as node headers through <slot>s.

Problem/motivation

Currently, the Alluvial diagram supports text node headers through options.nodeHeaders. This option expects an array of strings, with the same length as the node depths. While this is good and works for a lot of cases, there are some specific cases where you might want something more than just a text label. For instance, an icon with contextual information.

Describe alternatives you've considered

No response

Additional context

No response

Validations