Skip to main content

BuilderFactoryExtensions.BootstrapPieChart(BuilderFactory) Method

Creates a Pie Chart control.

Namespace: DevExpress.AspNetCore

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

Declaration

public static BootstrapPieChartBuilder BootstrapPieChart(
    this BuilderFactory builderFactory
)

Parameters

Name Type Description
builderFactory BuilderFactory

A BuilderFactory object providing access to Pie Chart settings.

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()
    .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