BuilderFactoryExtensions.BootstrapPieChart(BuilderFactory) Method
In This Article
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 |
---|---|---|
builder |
Builder |
A Builder |
#Returns
Type | Description |
---|---|
Bootstrap |
A builder for a Pie Chart control. |
#Remarks
IMPORTANT
Bootstrap Controls for ASP.
The code sample below demonstrates how you can use this method to create a Pie Chart control.
cshtml
@(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