Hello,
I am:
- using the linear gauge
- have a method "FormatLongNumber" that formats the label value
- * need a way to access the current label value so that i can pass the data to the formatting function. the highlighted line below shows the call to the function. however i do not know how to pass the actual value
- the text that is highlighted in red is where i need to access the value of the current label
Thanks!
Bill
Html.Kendo().LinearGauge()
.Name("faultcount_#=FaultCount#")
.HtmlAttributes(new { data_bind = "value: FaultCount" })
.Scale(scale => scale
.Ranges(ranges =>
{
ranges.Add().From(27500).To(35000).Color("red");
}
).Labels(label =>
label.Visible(true).Color("white").Template("#=FormatLongNumber(value)#")).Line(line => line.Visible(true))
.Vertical(false)
.Min(0) // Set the min value of the LinearGauge.
.Max(35000) // Set the min value of the LinearGauge.
.MajorTicks(ticks=> ticks.Color("white"))
.MinorTicks(mticks=> mticks.Color("white"))
)
.Pointer(pointer => pointer
.Shape(GaugeLinearPointerShape.BarIndicator)
.Color("white")
)