({{, (RefLink[ScaleRangeStyle, paclet:ref/ScaleRangeStyle]) 
is an option for gauge functions to describe how to style different sections of the scale.}})

OpenersNotesSection(Spacer1)Details

(RefLink[ScaleRangeStyle, paclet:ref/ScaleRangeStyle]) gives styles for both the background and foreground of the region.

(RefLink[ScaleRangeStyle, paclet:ref/ScaleRangeStyle])->style specifies that all ranges are to be rendered by default with the specified style.

(RefLink[ScaleRangeStyle, paclet:ref/ScaleRangeStyle])->{(Subscript[style, 1]),(Subscript[style, 2]),…} specifies that range i should be styled according to (Subscript[style, i]).

(RefLink[ScaleRangeStyle, paclet:ref/ScaleRangeStyle]) provides style instructions for (RefLink[ScaleRanges, paclet:ref/ScaleRanges]). The possible forms are:

Styles can be specified using graphics directives such as (RefLink[Thick, paclet:ref/Thick]), (RefLink[Red, paclet:ref/Red]), and (RefLink[Dashed, paclet:ref/Dashed]), as well as (RefLink[Thickness, paclet:ref/Thickness]), (RefLink[RGBColor, paclet:ref/RGBColor]), (RefLink[Dashing, paclet:ref/Dashing]), and combinations given by (RefLink[Directive, paclet:ref/Directive]). Styles for the foreground can also contain rules for options such as (RefLink[FontSize, paclet:ref/FontSize]) and (RefLink[FontFamily, paclet:ref/FontFamily]).

(RefLink[ScaleRanges, paclet:ref/ScaleRanges])->{{(Subscript[r, 1,min]),(Subscript[r, 1,max])}->(Subscript[s, 1]),{(Subscript[r, 2,min]),(Subscript[r, 2,max])}->(Subscript[s, 2]),…} can be used to specify a style (Subscript[s, i]) for range {(Subscript[r, i,min]),(Subscript[r, i,max])}.

Explicit styles specified in the setting for (RefLink[ScaleRanges, paclet:ref/ScaleRanges]) can override styles specified in (RefLink[ScaleRangeStyle, paclet:ref/ScaleRangeStyle]).

OpenersPrimaryExamplesSection(Spacer1)Examples  (10)

OpenersExampleSection0(Spacer1)Basic Examples  (10)

By default, the scale ranges are styles are based on the marker color:

AngularGauge[42,{0,100},GaugeStyle->#,ScaleRanges->{{50,70},{70,80},{80,90},{90,100}}]&/@{Automatic,Orange}

Apply a style to every range:

AngularGauge[42,{0,100},ScaleRanges->{{50,70},{70,80},{80,90},{90,100}},AxesStyle->None,ScaleRangeStyle->EdgeForm[{Darker@Gray}]]

Use a list of directives to style each range separately:

AngularGauge[42,{0,100},ScaleRanges->{{70,80},{80,90},{90,100}},ScaleRangeStyle->{Yellow,Orange,Red}]

Use (RefLink[ScaleRangeStyle, paclet:ref/ScaleRangeStyle])->{(RefLink[None, paclet:ref/None]),style} to apply a style to the scale only:

AngularGauge[42,{0,100},ScaleRanges->{80,100},ScaleRangeStyle->{None,Red}]

Apply a style to the backgrounds and foregrounds of all the ranges:

AngularGauge[42,{0,100},ScaleRanges->{{0,20},{80,100}},ScaleRangeStyle->{{LightBlue,Blue},{LightRed,Red}}]

Color the scale ranges with built-in color schemes:

Table[AngularGauge[42,{0,100},ScaleRanges->{{0,20},{20,50},{50,80},{80,100}},ScaleRangeStyle->f],{f,{"BlueGreenYellow",24}}]

Define a one-dimensional color function:

CoolColor[ z_ ] :=RGBColor[1-z,z,1];

AngularGauge[42,{0,100},ScaleRanges->{{0,20},{20,50},{50,80},{80,100}},ScaleRangeStyle->CoolColor]

Colors are taken from the (RefLink[Automatic, paclet:ref/Automatic]) styling if not specified in (RefLink[ScaleRangeStyle, paclet:ref/ScaleRangeStyle]):

AngularGauge[42,{0,100},ScaleRanges->{{50,80},{80,100}},ScaleRangeStyle->{EdgeForm[{Gray,Dashed}],Automatic}]

Styles will repeat cyclically, if necessary:

AngularGauge[42,{0,100},ScaleRanges->Table[{i,i+10},{i,0,100,10}],ScaleRangeStyle->{Yellow,Orange}]

Rule specified styles override the (RefLink[ScaleRangeStyle, paclet:ref/ScaleRangeStyle]):

AngularGauge[42,{0,100},ScaleRanges->{{0,33},{33,66}->Yellow,{66,100}},ScaleRangeStyle->{Green,Blue,Red}]

({{DocumentationFooterIconsRelatedGuide.png, ({{Related Guides}, {▪(RefLinkPlain[Gauges, paclet:guide/Gauges])}})}})