Skip to main content

DxPieChartSeries<T, TArgument, TValue>.Name Property

Specifies the name for a series.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v23.2.dll

NuGet Package: DevExpress.Blazor

Declaration

[Parameter]
public string Name { get; set; }

Property Value

Type Description
String

The series name.

Remarks

Use the Name property to specify the name of a series. You can show this name in the Tooltip.

<DxPieChart Data="@SalesData">
    <DxPieChartSeries T="SaleInfo"
                      TArgument="string"
                      TValue="double"
                      ValueField="si => si.Amount"
                      ArgumentField="si => si.Region"
                      SummaryMethod="Enumerable.Sum"
                      Name="Distribution">
    </DxPieChartSeries>
    <DxChartTooltip Enabled="true" Position="RelativePosition.Outside">
        <div style="margin: 0.75rem">
            <div class="font-weight-bold">@context.Point.SeriesName</div>
            <div>Region: @context.Point.Argument</div>
            <div>Amount: @context.Point.Value</div>
        </div>
    </DxChartTooltip>
    <DxChartLegend Position="RelativePosition.Outside" />
</DxPieChart>

Tooltip in the Pie Chart

See Also