BuilderFactoryExtensions.BootstrapSparkline(BuilderFactory) Method

Creates a Sparkline control.

Namespace: DevExpress.AspNetCore

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

Declaration

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

Parameters

Type Name Description
BuilderFactory builderFactory

A BuilderFactory object providing access to Sparkline settings.

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()
    .ArgumentField("date")
    .ValueField("sales")
    .Bind("jsondata/simple.json"))