JavaScript/jQuery Sankey - Title and Subtitle

Titles and subtitles are textual elements that provide an overview of what the UI component visualizes.

Sankey Title and Subtitle

The title object configures the title; the title.subtitle object configures the subtitle.

JavaScript
  • $(function() {
  • $("#sankeyContainer").dxSankey({
  • // ...
  • title: {
  • text: "I am the Title",
  • subtitle: {
  • text: "I am the Subtitle"
  • }
  • }
  • });
  • });

You can set the title's text more concisely if you assign it directly to the title property. This is useful if you do not want to change the title's default settings and do not need a subtitle.

JavaScript
  • $(function() {
  • $("#sankeyContainer").dxSankey({
  • // ...
  • title: "I am the Title"
  • });
  • });

View Demo

See Also