Sankey chart title

What is the “nice” way to add a title/caption to the top of a Sankey chart, imported from the D3 Sankey component notebook?

You can wrap it in a figure and customize the styling to your liking, e.g.

htl.html`<figure style="max-width:none">
  <figcaption style="color:inherit;font-size:large">My caption</figcaption>
  ${ SankeyChart({ /* ... */ }) }
`

1 Like

Thanks @mootari!