Vue PieChart - Title and Subtitle

Title and subtitle are textual elements that give an idea of what the PieChart visualizes.

DevExtreme HTML5 JavaScript PieChart Title Subtitle

The title is configured by the title object. The subtitle is configured by the subtitle object nested in the title object.

App.vue
  • <template>
  • <DxPieChart ...>
  • <DxTitle text="I am the Title">
  • <DxSubtitle text="I am the Subtitle"/>
  • </DxTitle>
  • </DxPieChart>
  • </template>
  •  
  • <script>
  • import DxPieChart, {
  • DxTitle,
  • DxSubtitle
  • } from 'devextreme-vue/pie-chart';
  •  
  • export default {
  • components: {
  • DxPieChart,
  • DxTitle,
  • DxSubtitle
  • }
  • }
  • </script>

View Demo

You can set the title's text more concisely by assigning it directly to the title property. This is useful if you are satisfied with the default settings of the title and do not need a subtitle.

App.vue
  • <template>
  • <DxPieChart ...
  • title="I am the Title">
  • </DxPieChart>
  • </template>
  •  
  • <script>
  • import DxPieChart from 'devextreme-vue/pie-chart';
  •  
  • export default {
  • components: {
  • DxPieChart
  • }
  • }
  • </script>

For information about all properties of the title and subtitle, visit the title section of the API reference.

See Also