BuilderFactoryExtensions.BootstrapSparkline(BuilderFactory, String) Method

Creates a Sparkline control with a specified name.

Namespace: DevExpress.AspNetCore

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

Syntax

public static BootstrapSparklineBuilder BootstrapSparkline(this BuilderFactory builderFactory, string name)

Parameters

Type Name Description
BuilderFactory builderFactory

A BuilderFactory object providing access to Sparkline settings.

String name

A control name.

Returns

Type Description
BootstrapSparklineBuilder

A builder for a Sparkline control.

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

@(Html.DevExpress()
    .BootstrapSparkline("sparklineWithJSON")
    .ArgumentField("date")
    .ValueField("sales")
    .Bind("jsondata/simple.json"))