Skip to main content

GaugeChartEvent

Event raised for interactions with a GaugeChart.

Inherits: Event

Properties

Properties​

angleclass-attributeinstance-attribute​

angle: float | None = None

The 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 = False

Whether the touch is on the filled part of a GaugeProgressRing.

radiusclass-attributeinstance-attribute​

radius: float | None = None

The 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 = None

The index of the touched ring in GaugeChart.rings.

None if the touch is outside the arc, between rings or outside every ring.

typeinstance-attribute​

type: ChartEventType

The touch or pointer event that occurred.

valueclass-attributeinstance-attribute​

value: float | None = None

The 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 = None

The index of the touched zone in GaugeZonesRing.zones.

None if the touched ring isn't a GaugeZonesRing, or if the touch is between zones.