pointerOffset property
Adjusts the range pointer position.
You can specify position value either in logical pixel or radius factor using the sizeUnit property. if sizeUnit is GaugeSizeUnit.factor, value will be given from 0 to 1. Here pointer placing position is calculated by pointerOffset * axis radius value.
Example: pointerOffset value is 0.2 and axis radius is 100, pointer is moving 20(0.2 * 100) logical pixels from axis outer radius. if sizeUnit is GaugeSizeUnit.logicalPixel, defined value distance pointer will move from the outer radius axis.
When you specify pointerOffset is negative, the range pointer will be positioned outside the axis.
Defaults to 0
and sizeUnit is GaugeSizeUnit.logicalPixel
.
Widget build(BuildContext context) {
return Container(
child: SfRadialGauge(
axes:<RadialAxis>[RadialAxis(
pointers: <GaugePointer>[RangePointer(pointerOffset: 30,
value: 20)],
)]
));
}
Implementation
final double pointerOffset;