| Search Locate Previous Next | Contents |
Accepts a scalar or vector of numbers and plots a fuel gauge style plot. Would normally be used with a simple scalar value to show a single pointer, with suitable warning zones.
chDial 23
Examples
chSet ('head' 'Simple Pointer and Scale')
chSet('axes' 'Black,solid,2')('lfont' 'arb,12')
chSet('nib' 2)('line' 'solid')
chSet('xr' 0 30)('xt' 10)
chDial 17)
PGchClose
You can use the style arrowed to add an arrowhead, and the XZones property to set one or more coloured bands. Set the style to wedge to have the warning zone drawn as a complete sector the default is annular.
Several pointers can be created if required the standard colour, line and nib cycles are used to generate each in turn. Also the Radii property may be used to make a secondary pointer shorter, as in the example below:
chSet('style' 'arrow')('nib' 2 1.2)('line' 'solid')('radii' 100 50)
chSet('xr' 0 100)('xt' 20,3)('xzones' 'lime,0,10' '#F99E0F,40,70' 'Red,70')
chDial 25 56
The sample chart shows some of the possibilities, laid out as a neat dashboard.
See also ...
Radii pie sector radii and Dial pointers
Dialchart Style
XZones warning regions for X-axis
ZoneAttributes for warning bands