Databases Reference
In-Depth Information
When selected, the
Autowidth Segments
function automatically sizes the segments
based on the
Min
and
Max
values of the gauge. We want to avoid this as we want to
set the values ourselves.
Add two new segments by clicking twice on the
Add...
button from the
Segments
Setup
section. We'll now have four segments and will set up each of the four
segments is in the following manner:
•
Segment 1
:
°
Lower Bound
:
0.5
°
Color
set to
Two Colors Gradient
with the
Base Color
option set
to
Red
(R:
255
; G:
0
; B:
0
) and the
Second Color
option set to
Orange
(R:
255
; G:
128
; B:
0
)
° Color
Gradient Style
option should be set to
Vertical
•
Segment 2
:
°
Lower Bound
:
0.625
°
Color
set to
Two Colors Gradient
with the
Base Color
option set
to
Orange
(R:
255
; G:
128
; B:
0
) and the
Second Color
option set to
Yellow
(R:
255
; G:
255
; B:
0
)
° Color
Gradient Style
option will be set to
Vertical
•
Segment 3
:
°
Lower Bound
:
0.75
°
Color
set to
Two Colors Gradient
with the
Base Color
option set to
Yellow
(R:
255
; G:
255
; B:
0
) and the
Second Color
option set to
Light
Green
(R:
128
; G:
255
; B:
128
)
° Color
Gradient Style
option will be set to
Vertical
•
Segment 4
:
°
Lower Bound
:
0.85
°
Color
set to
Two Colors Gradient
with the
Base Color
option set to
Light Green
(R:
128
; G:
255
; B:
128
) and the
Second Color
option set to
Green
(R:
0
; G:
255
; B:
0
)
° Color
Gradient Style
option should be set to
Vertical
In these steps we configured the gauge to display values from 50 to 100 percent.
Within this range we defined four separate segments, each with their own color.
You may have noticed that we only set the lower boundary for each segment; this is
because the upper boundary is automatically defined by the lower boundary of the
following segment, or by the upper boundary of the gauge. In our example,
Segment 1
runs from 50 to 62.5 percent (although we specified the limits in decimal form, that is,
0.5 and 0.625),
Segment 2
covers the area ranging from 62.5 to 75 percent, and so on.