Back to Devexpress

DxPieChartSeries<T, TArgument, TValue>.Name Property

blazor-devexpress-dot-blazor-dot-dxpiechartseries-3-33d4903b.md

latest1.8 KB
Original Source

DxPieChartSeries<T, TArgument, TValue>.Name Property

Specifies the name for a series.

Namespace : DevExpress.Blazor

Assembly : DevExpress.Blazor.v25.2.dll

NuGet Package : DevExpress.Blazor

Declaration

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

Property Value

TypeDescription
String

The series name.

|

Remarks

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

razor
<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 class="m-3">
            <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>

See Also

DxPieChartSeries<T, TArgument, TValue> Class

DxPieChartSeries<T, TArgument, TValue> Members

DevExpress.Blazor Namespace