BuilderFactoryExtensions.BootstrapSparkline(BuilderFactory, String) Method

Creates a Sparkline control with a specified name.

Namespace: DevExpress.AspNetCore

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

Declaration

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

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"))

See Also