Skip to main content
A newer version of this page is available. .

DxChartSubTitle Class

Defines a subtitle for a chart or legend.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v20.2.dll

NuGet Package: DevExpress.Blazor

Declaration

public class DxChartSubTitle :
    DxSettingsComponent<ChartSubTitleModel>

Remarks

You can specify a title (DxChartTitle) and subtitle (DxChartSubTitle) for a chart. Use the Text property to specify the subtitle’s display text.

Chart Titles and Subtitles

<DxChart Data="@SalesData">
   <DxChartTitle Text="Sales amount">
       <DxChartSubTitle Text="by cities"></DxChartSubTitle>
   </DxChartTitle>
    ...
    <DxChartLegend ...>
        <DxChartTitle Text="Years">
            <DxChartSubtitle Text="(2017-2019)"></DxChartSubtitle>
        </DxChartTitle>
    </DxChartLegend>
</DxChart>

Online Demo

Charts - Legend Customization

Inheritance

Object
ComponentBase
DxSettingsComponent<DevExpress.Blazor.Internal.ChartSubTitleModel>
DxChartSubTitle
See Also