Skip to main content

WidgetFactory<TModel>.Sparkline() Method

Creates a Sparkline control.

Namespace: DevExtreme.AspNet.Mvc.Factories

Assembly: DevExtreme.AspNet.Core.dll

Declaration

public SparklineBuilder Sparkline()

Returns

Type Description
SparklineBuilder

An instance of SparklineBuilder.

Remarks

This method creates a SparklineBuilder class instance whose members can be used to specify Sparkline options.

@(Html.DevExtreme().Sparkline() // create a Sparkline
    // call methods to specify control options
)
See Also