Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

DxChartTitle Class

Defines a title for a chart or legend.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.2.dll

NuGet Package: DevExpress.Blazor

#Declaration

C#
public class DxChartTitle :
    DxComplexSettingsComponent<DxChartTitle, ChartTitleModel>,
    IModelProvider<ChartSubTitleModel>

#Remarks

Use DxChartTitle objects to customize title settings for the following components:

DxChart<T>
A control that visualizes bound data as graphs: bar, area, line, and others.
DxPieChart<T>
A control that visualizes data as Pie and Donut charts.
DxPolarChart<T>
A control that visualizes bound data as graphs in polar coordinates.
DxChartLegend
Defines a chart legend.

The DxChartTitle is a component that displays a short caption for the Chart. You can put the DxChartTitle inside the DxChart directly or DxChartLegend.

Razor
<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>

Chart Titles and Subtitles

#Inheritance

Object
ComponentBase
DxSettingsComponent<DevExpress.Blazor.Internal.ChartTitleModel>
DxComplexSettingsComponent<DxChartTitle, DevExpress.Blazor.Internal.ChartTitleModel>
DxChartTitle
See Also