GaugeChartEvent
Event raised for interactions with a GaugeChart.
Inherits: Event
Properties
angle- The angle of the touch around the center of the gauge, in degrees.is_on_value- Whether the touch is on the filled part of aGaugeProgressRing.radius- The distance from the center of the gauge to the touch, in logical pixels.ring_index- The index of the touched ring inGaugeChart.rings.type- The touch or pointer event that occurred.value- The value on the gauge's scale at the angle of the touch.zone_index- The index of the touched zone inGaugeZonesRing.zones.
Properties
angleclass-attributeinstance-attribute
angle: float | None = NoneThe angle of the touch around the center of the gauge, in degrees.
0 points right and angles increase clockwise, as in
GaugeChart.start_degree_offset. None if the touch is
outside the arc.
is_on_valueclass-attributeinstance-attribute
is_on_value: bool = FalseWhether the touch is on the filled part of a
GaugeProgressRing.
radiusclass-attributeinstance-attribute
radius: float | None = NoneThe distance from the center of the gauge to the touch, in logical pixels.
None if the touch is outside the arc.
ring_indexclass-attributeinstance-attribute
ring_index: int | None = NoneThe index of the touched ring in GaugeChart.rings.
None if the touch is outside the arc, between rings or outside every ring.
valueclass-attributeinstance-attribute
value: float | None = NoneThe value on the gauge's scale at the angle of the touch.
It is set whenever the touch is within the angle of the arc, even between or
outside the rings. None if the touch is outside the arc.
zone_indexclass-attributeinstance-attribute
zone_index: int | None = NoneThe index of the touched zone in GaugeZonesRing.zones.
None if the touched ring isn't a GaugeZonesRing, or if
the touch is between zones.