SparklineBuilder.LossColor(JS) Method
In This Article
Sets a color for the bars indicating the values that are less than the winloss threshold. Available for a sparkline of the winloss type only. Mirrors the client-side lossColor option.
Namespace: DevExtreme.AspNet.Mvc.Builders
Assembly: DevExtreme.AspNet.Core.dll
#Declaration
C#
public SparklineBuilder LossColor(
JS value
)
#Parameters
Name | Type | Description |
---|---|---|
value | JS | A Java |
#Returns
Type | Description |
---|---|
Sparkline |
A reference to this instance after the method is called. |
#Remarks
Use the new JS() expression to set the option’s value.
<script>
var myValue = ...;
</script>
@(Html.DevExtreme().Sparkline()
.LossColor(new JS("myValue"))
)
See Also