Gauge Needles and Other Markers
Gauge Needles and Other Markers
Specify the needle appearance for a gauge, position a marker along the scale, or fill in the scale to the appropriate value:
needles = Table[AngularGauge[RandomInteger[{1, 100}], {0, 100}, GaugeMarkers -> m, GaugeStyle -> RandomChoice[ColorData[67, "ColorList"]]], {m, ChartElementData["AngularGauge", "Markers"][[{2, 3, 6, 16, 18, 20}]]}];markers = Table[AngularGauge[42, {0, 100}, GaugeMarkers -> Placed["PolarMarker", p], GaugeFrameSize -> 0.2, GaugeStyle -> RandomChoice[ColorData[82, "ColorList"]]], {p, {"InsideScale", "OutsideScale", "Frame"}}];fills = MapThread[AngularGauge[42, {0, 100}, GaugeMarkers -> Placed[#1, #2], GaugeStyle -> RandomChoice[ColorData[82, "ColorList"]]]&, {ChartElementData["AngularGauge", "Markers"][[{9, 15, 9}]], {"DivisionCenter", "DivisionInterval", "ScaleRange"}}];Grid[Partition[Join[needles, markers, fills], 3]]bars = Grid[Partition[Join[Table[HorizontalGauge[RandomInteger[{10, 90}], {0, 100}, GaugeMarkers -> m, GaugeStyle -> RandomChoice[ColorData[85, "ColorList"]], ImageSize -> 250], {m, ChartElementData["HorizontalGauge", "Markers"][[{2, 9}]]}], MapThread[HorizontalGauge[RandomInteger[{50, 100}], {0, 100}, GaugeMarkers -> Placed[##1], ScaleDivisions -> {5, 2}, GaugeStyle -> RandomChoice[ColorData[85, "ColorList"]], ImageSize -> 250]&, {ChartElementData["HorizontalGauge", "Markers"][[{3, 4, 5, 10}]], {"Scale", "DivisionCenter", "DivisionInterval", "Scale"}}]], 2]]