GaugeAnnotation class

RadialAxis allows to add widgets such as text and image as an annotation to a specific point of interest in the radial gauge.

GaugeAnnotation provides options to add any image, text or other widget over a gauge widget with respect to angle or axisValue. Display the current progress or pointer value inside the gauge using a text widget annotation.

Widget build(BuildContext context) {
   return Container(
       child: SfRadialGauge(
         axes:<RadialAxis>[RadialAxis(
           annotations: <GaugeAnnotation>[
           GaugeAnnotation(widget: Text('Annotation'))
           ]
           )]
       ));
}

Constructors

GaugeAnnotation({Widget widget, double axisValue, GaugeAlignment horizontalAlignment: GaugeAlignment.center, double angle, GaugeAlignment verticalAlignment: GaugeAlignment.center, double positionFactor: 0})
Create an GaugeAnnotation with the required properties. [...]

Properties

angle double
Specifies the angle for positioning the annotation [...]
final
axisValue double
Specifies the axis value for positioning annotation. [...]
final
hashCode int
The hash code for this object. [...]
read-only, override
horizontalAlignment GaugeAlignment
How the annotation should be aligned horizontally in the respective position. [...]
final
positionFactor double
Specifies the position of annotation in radius factor. [...]
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
verticalAlignment GaugeAlignment
How the annotation should be aligned vertically in the respective position. [...]
final
widget Widget
Specifies the annotation widget. [...]
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
Returns a string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
override