The requested page is not available for the requested platform. You are viewing the content for Default platform.

BuilderFactoryExtensions.BootstrapPieChart(BuilderFactory, String) Method

Creates a Pie Chart control with a specified name.

Namespace: DevExpress.AspNetCore

Assembly: DevExpress.AspNetCore.Bootstrap.v18.2.dll

Declaration

public static BootstrapPieChartBuilder BootstrapPieChart(
    this BuilderFactory builderFactory,
    string name
)
<ExtensionAttribute>
Public Shared Function BootstrapPieChart(
    builderFactory As BuilderFactory,
    name As String
) As BootstrapPieChartBuilder

Parameters

Name Type Description
builderFactory BuilderFactory

A BuilderFactory object providing access to Pie Chart settings.

name String

A chart name.

Returns

Type Description
BootstrapPieChartBuilder

A builder for a Pie Chart control.

Remarks

Important

Bootstrap Controls for ASP.NET Core are in maintenance mode. We don’t add new controls or develop new functionality for this product line. Our recommendation is to use the ASP.NET Core Controls suite.

The code sample below demonstrates how you can use this method to create a Pie Chart control.

@(Html.DevExpress()
    .BootstrapPieChart("pieChartSeries")
    .TitleText("Countries in the world by population (2017)")
    .SeriesCollection(series => series
        .Add()
        .ArgumentField("country")
        .ValueField("population")
        .Label(label => label
            .Visible(true)
            .Format(format => format
                .Type(DevExpress.AspNetCore.Bootstrap.FormatType.Millions))))

    .Bind("jsondata/ChartTypes/pie.json"))
See Also