Skip to main content

BuilderFactoryExtensions.BootstrapChart(BuilderFactory) Method

Creates a Chart control.

Namespace: DevExpress.AspNetCore

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

Declaration

public static BootstrapChartBuilder BootstrapChart(
    this BuilderFactory builderFactory
)

Parameters

Name Type Description
builderFactory BuilderFactory

A BuilderFactory object providing access to Chart settings.

Returns

Type Description
BootstrapChartBuilder

A builder for a 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 Chart control.

@(Html.DevExpress()
    .BootstrapChart()
    .TitleText("Daily Sales")
    .Rotated(true)
    .ArgumentAxis(axis => axis
        .ArgumentType(typeof(DateTime))
        .MaxValue("2017-01-10"))
    .ValueAxisCollection(axis => axis
        .AddValueAxis()
            .TickInterval(1))
    .SeriesCollection(series => series
        .AddBarSeries()
            .ArgumentField("date")
            .ValueField("sales"))
    .SettingsLegend(settings => settings.Visible(false))
    .Bind("jsondata/simple.json"))
See Also