is an option for gauge functions that gives a function to use to generate the primitives for rendering the gauge face.
GaugeFaceElementFunction
is an option for gauge functions that gives a function to use to generate the primitives for rendering the gauge face.
Details
- GaugeFaceElementFunction->f specifies that the gauge face element should be rendered with the graphics primitives given by f[region,values].
- GaugeFaceElementFunction->"name" uses a named function for generating chart elements.
- Lists of built-in named functions for specific charting functions can be obtained from ChartElementData["AngularGauge","Face"], etc.
- In GaugeFaceElementFunction->f, the region argument to f is given as follows:
-
AngularGauge,ClockGauge {{θmin,θmax},{rmin,rmax}} HorizontalGauge,VerticalGauge,ThermometerGauge,BulletGauge {{xmin,xmax},{ymin,ymax}}
Examples
Basic Examples (2)
Use a built-in ChartElementFunction:
ChartElementData["AngularGauge", "Face"]AngularGauge[5.5, {0, 10}, GaugeFrameStyle -> None, GaugeFaceElementFunction -> "PlateauSector"]ChartElementData["VerticalGauge", "Face"]VerticalGauge[5.5, {0, 10}, GaugeFaceStyle -> LightBlue, GaugeFaceElementFunction -> "GlassRectangle"]Write a custom GaugeFaceElementFunction:
f[{{θ1_, θ2_}, {r1_, r2_}}, __] := First[ParametricPlot[(Max[r, 0.5 + 0.45Abs[Cos[θ ^ 1.3]]Sin[16θ]]){ Cos[θ], Sin[θ]}, {θ, θ1, θ2}, {r, r1, r2}, Mesh -> None, PlotStyle -> Directive[Opacity[1], LightGray], BoundaryStyle -> Gray]]AngularGauge[42, {0, 100}, GaugeFrameStyle -> None, GaugeFaceElementFunction -> f]g[{{xmin_, xmax_}, {ymin_, ymax_}}, ___] := {LightOrange, Rectangle[{xmin, ymin}, {xmax, ymax}, RoundingRadius -> .15]}VerticalGauge[42, {0, 100}, GaugeFaceElementFunction -> g]Related Guides
-
▪
- Gauges
History
Text
Wolfram Research (2012), GaugeFaceElementFunction, Wolfram Language function, https://reference.wolfram.com/language/ref/GaugeFaceElementFunction.html.
CMS
Wolfram Language. 2012. "GaugeFaceElementFunction." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/GaugeFaceElementFunction.html.
APA
Wolfram Language. (2012). GaugeFaceElementFunction. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/GaugeFaceElementFunction.html
BibTeX
@misc{reference.wolfram_2026_gaugefaceelementfunction, author="Wolfram Research", title="{GaugeFaceElementFunction}", year="2012", howpublished="\url{https://reference.wolfram.com/language/ref/GaugeFaceElementFunction.html}", note=[Accessed: 13-June-2026]}
BibLaTeX
@online{reference.wolfram_2026_gaugefaceelementfunction, organization={Wolfram Research}, title={GaugeFaceElementFunction}, year={2012}, url={https://reference.wolfram.com/language/ref/GaugeFaceElementFunction.html}, note=[Accessed: 13-June-2026]}