Angular 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.

App.js
  • import React from 'react';
  • import Sankey, { Title, Subtitle } from 'devextreme-react/sankey';
  •  
  • class App extends React.Component {
  • render() {
  • return (
  • <Sankey ... >
  • <Title text="I am the Title">
  • <Subtitle text="I am the Subtitle" />
  • </Title>
  • </Sankey>
  • )
  • }
  • }
  •  
  • export default App;

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.

App.js
  • import React from 'react';
  • import Sankey from 'devextreme-react/sankey';
  •  
  • class App extends React.Component {
  • render() {
  • return (
  • <Sankey title="I am the Title" />
  • )
  • }
  • }
  •  
  • export default App;

View Demo

See Also