RadarHighlighter class

Highlighter for the radar chart.

Strategy: the touch angle picks the entry index on the web, then among all data sets the entry whose value is closest to the touch distance from the center (in value units, the distance divided by the chart's factor) wins. The highlight carries the entry index as x and the entry value as y.

Inheritance

Constructors

RadarHighlighter(RadarChart chart)
Creates the highlighter of chart.

Properties

chart → RadarChart
The chart whose radius, angles and data the highlights are searched with.
finalinherited
hashCode → int
The hash code for this object.
no setterinherited
highlightBuffer → List<Highlight>
Reused list that collects the candidate highlights of one lookup.
finalinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

getClosestHighlight(int index, double x, double y) → Highlight?
Returns the highlight at the entry index of the data set whose value is closest to the touch distance of the pixel position (x, y) from the center, or null when no data set has an entry at index.
override
getHighlight(double x, double y) → Highlight?
Returns the highlight for the touch at the pixel position (x, y), or null when the touch lies outside the chart radius, no entry lies under its angle or the chart has no data. The hole of a pie chart is not excluded.
inherited
getHighlightsAtIndex(int index) → List<Highlight>
Builds one highlight per data set that has an entry at index, with the pixel position of that entry on the web including the current animation phases.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited