File tree Expand file tree Collapse file tree
Traces/ObjectAbstractions Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -183,10 +183,12 @@ Chart.Indicator(
183183 Range = StyleParam.Range.MinMax( 0. , 250. ),
184184 Domain = Domain.init( Row = 0 , Column = 1 ),
185185 Gauge = IndicatorGauge.init(
186+ Bar = IndicatorBar.init( Color = Color.fromKeyword Black),
186187 Steps = [
187- IndicatorStep.init( Range = StyleParam.Range.MinMax( 0. , 150. ), Color = Color.fromKeyword Cyan)
188- IndicatorStep.init( Range = StyleParam.Range.MinMax( 150. , 250. ), Color = Color.fromKeyword Red)
189- ]
188+ IndicatorStep.init( Range = StyleParam.Range.MinMax( 0. , 150. ), Color = Color.fromKeyword Green)
189+ IndicatorStep.init( Range = StyleParam.Range.MinMax( 150. , 200. ), Color = Color.fromKeyword Yellow)
190+ ],
191+ Threshold = IndicatorThreshold.init( Value = 200. , Line = Line.init( Color= Color.fromKeyword Red, Width = 20. ))
190192 )
191193)
192194|> Chart.show
Original file line number Diff line number Diff line change @@ -245,6 +245,6 @@ type IndicatorGauge() =
245245 BorderWidth |> DynObj.setValueOpt indicatorGauge " borderwidth"
246246 Shape |> DynObj.setValueOptBy indicatorGauge " shape" StyleParam.IndicatorGaugeShape.convert
247247 Steps |> DynObj.setValueOpt indicatorGauge " steps"
248- Threshold |> DynObj.setValueOpt indicatorGauge " threshold "
248+ Threshold |> DynObj.setValueOpt indicatorGauge " threshold"
249249
250250 indicatorGauge)
You can’t perform that action at this time.
0 commit comments