Back to Devexpress

DxChartSubTitle Class

blazor-devexpress-dot-blazor-8a0bc7df.md

latest2.6 KB
Original Source

DxChartSubTitle Class

Defines a subtitle for a chart or legend.

Namespace : DevExpress.Blazor

Assembly : DevExpress.Blazor.v25.2.dll

NuGet Package : DevExpress.Blazor

Declaration

csharp
public class DxChartSubTitle :
    DxSettingsComponent<ChartSubTitleModel>

Remarks

Use DxChartSubtitle objects to customize subtitle 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.DxChartLegendDefines a chart legend.

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

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>

Online Demo

Charts - Legend Customization

Implements

IComponent

IHandleEvent

IHandleAfterRender

IDisposable

Inheritance

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

See Also

DxChartSubTitle Members

DevExpress.Blazor Namespace