Wolfram Language & System 11.0 (2016)|Legacy Documentation

This is documentation for an earlier version of the Wolfram Language.View current documentation (Version 11.2)


draws a gauge showing value in the range 0 to 1.

draws a gauge showing value in a range of min to max.

allows value to be set interactively using the gauge.

draws a gauge showing multiple values.

Details and OptionsDetails and Options

  • Values less than min or greater than max are clipped to the respective limits.
  • Undefined values or bad input is taken to be missing and typically displays the min value.
  • Units may be assigned to value, min, and max by using Quantity.
  • The units do not need to be the same, but must be compatible.
  • AngularGauge has the same options as Graphics with the following additions and changes:
  • GaugeFaceElementFunctionAutomaticfunction to draw the face
    GaugeFaceStyleAutomaticstyle for the gauge face
    GaugeFrameElementFunctionAutomaticfunction to draw the frame
    GaugeFrameSizeAutomatichow large to make the gauge frame
    GaugeFrameStyleAutomaticstyle for the gauge frame
    GaugeLabelsNonelabels for the gauge
    GaugeMarkersAutomaticappearance for the marker
    GaugeStyleAutomaticstyle for gauge markers
    MethodAutomaticmethod to use
    PerformanceGoal$PerformanceGoalaspects of performance to try to optimize
    PlotTheme$PlotThemetheme to use for drawing the gauge
    ScaleDivisionsAutomaticthe number and distribution of ticks
    ScaleOriginAutomaticwhere to position the scale in the gauge
    ScalePaddingAutomatichow to draw the space around the scale
    ScaleRangesNonethe sections of the scale to be styled
    ScaleRangeStyleAutomatichow to draw the scale ranges
    ScalingFunctionsNonescaling functions for the gauge
    TargetUnitsAutomaticunits to display in the gauge
  • GaugeLabels can take the following forms:
  • Noneno gauge labels
    Automaticinclude units as labels
    Fullinclude units and a value as labels
    Allinclude all values as labels
    "Value"include values as labels
    "Unit"include units as labels
    labeluse label as a label
    Placed[label,pos]place label at position pos
    {label1,label2,}use multiple labels
  • GaugeLabels->Placed[label,pos] can use the positions pos:
  • Top,Bottom,Left,Right,Centerpositions within the gauge face
    bsposition along the scale
    Scaled[bs]scaled position along the scale
    {bx,by}scaled position {bx,by} in the gauge
    {pos,{lx,ly}}scaled position {lx,ly} in the label at general position pos in the gauge
  • A list of built-in settings for GaugeMarkers, GaugeFaceElementFunction, and GaugeFrameElementFunction can be obtained from ChartElementData["AngularGauge"]. A visual gallery is available in the Chart Element Schemes palette.
  • GaugeMarkers->Placed[marker,pos] can be used to control where the marker is placed in the gauge. The possible positions pos are:
  • "Center"center of the dial face
    "DivisionCenter"cumulative markers centered on division marks
    "DivisionInterval"cumulative markers between division marks
    "Scale"within the scale region
    "OutsideScale"outside the scale region
    "InsideScale"inside the scale region
    "ScaleRange"cumulative marker within the scale region
    "Frame"within the dial frame
  • ScaleOrigin can take the following values:
  • rradius of the scale
    Left,Right,Bottom,Topon which side to center the scale
    {θmin,θmax}angular locations of min and max for the scale
    {angle,r}angular and radial origins for the scale
  • The angles in ScaleOrigin are measured in radians, counterclockwise from the positive axis. The values need not be between 0 and .
  • Scales run counterclockwise when θmin<θmax and clockwise when θmin>θmax.
  • If Abs[θmax-θmin]>2Pi, the scale will overlap itself.
  • The radial component r of the scale origin is scaled to run from 0 at the center of the gauge to 1 at the edge of the face.
  • ScalePadding can take the following forms:
  • pangular padding p on each end of the scale
    {pmin,pmax}padding pmin before the scale and pmax after
    Noneno padding around the scale
    Automaticautomatically determined padding
    Fullpad to the nearest chord of a circle
    Allpad the scale to make a complete circle
  • TargetUnits->Automatic automatically selects the units based on the input. If no units are present, none will be displayed.
  • TargetUnits->unit displays unit in the gauge, even if no units were present in the input.

ExamplesExamplesopen allclose all

Basic Examples  (4)Basic Examples  (4)

Generate a dial gauge for a particular value:

Click for copyable input

Generate a gauge using values with units:

Click for copyable input

Generate a gauge that displays multiple values:

Click for copyable input

Generate a dial gauge with an interactive value:

Click for copyable input
Introduced in 2012
| Updated in 2015