DxChartSubTitle Class

Defines a subtitle for a chart or legend.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.dll

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.

Blazor-Chart-Titles-and-Subtitles

<DxChart Data="@SalesData">
    <DxChartTitle Text="Sales amount" />
    <DxChartSubtitle Text="by cities"></DxChartSubtitle>
        <DxChartSeriesLegendItem IconCssClass="oi oi-flag">
            <TextTemplate>Last year</TextTemplate>
        </DxChartSeriesLegendItem>
    </DxChartLineSeries>
    <DxChartLegend>
        <DxChartTitle Text="Years">
            <DxChartSubtitle Text="(2013-2015)"></DxChartSubtitle>
        </DxChartTitle>
    </DxChartLegend>
</DxChart>

Online Demo

Charts - Legend Customization

Inheritance

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