Adding header to each layer of sankey graph

Hi Team,

I have a sankey graph, I need to show the heading on top of each layer like shown in below image.

How should I implement the same?

This can be done by overriding LayeredDigraphLayout.commitLayers, as some samples do to update the positions of “bands” decorating each layer. I’ll see if I can dig up a more specific sample.

Well, this is the given sample: Layer Bands using a Background Part
Although it uses TreeLayout, I think you can use that override in your LayeredDigraphLayout subclass, after removing TreeLayout-specific stuff and maybe adding some LayeredDigraphLayout-specific stuff.