DevExtreme Vue - Title and Subtitle
Title and subtitle are textual elements that give an idea of what the PieChart visualizes.
The title is configured by the title object. The subtitle is configured by the subtitle object nested in the title object.
jQuery
$(function() { $("#pieChartContainer").dxPieChart({ // ... title: { text: "I am the Title", subtitle: { text: "I am the Subtitle" } } }); });
Angular
<dx-pie-chart ... > <dxo-title text="I am the Title"> <dxo-subtitle text="I am the Subtitle"> </dxo-subtitle> </dxo-title> </dx-pie-chart>
import { DxPieChartModule } from 'devextreme-angular'; // ... export class AppComponent { // ... } @NgModule({ imports: [ // ... DxPieChartModule ], // ... })
You can set the title's text more concisely by assigning it directly to the title option. This is useful if you are satisfied with the default settings of the title and do not need a subtitle.
jQuery
$(function() { $("#pieChartContainer").dxPieChart({ // ... title: "I am the Title" }); });
Angular
<dx-pie-chart ... text="I am the Title"> </dx-pie-chart>
import { DxPieChartModule } from 'devextreme-angular'; // ... export class AppComponent { // ... } @NgModule({ imports: [ // ... DxPieChartModule ], // ... })
For information about all options of the title and subtitle, visit the title section of the API reference.
See Also
If you have technical questions, please create a support ticket in the DevExpress Support Center.