Class RadarSeries
A radar (spider) chart: one polygon per series over a shared set of spokes. All radar series in a chart share the spokes of the first one and one radial scale.
Chart chart = new Chart();
String[] skills = {"Speed", "Power", "Range", "Defense", "Stamina"};
chart.addSeries(new RadarSeries("Alice", skills).setValues(8, 6, 7, 5, 9));
chart.addSeries(new RadarSeries("Bob", skills).setValues(5, 9, 4, 8, 6));

-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidRecords a zero baseline as the start of the entry animation.protected voidRecords the values currently on screen as the start of the next transition.voidcollectTableRows(List<String[]> rows) Adds this series' data to an accessible table, one{series, item, value}row per point.formatTooltip(ChartContext ctx, ChartPoint p) The tooltip row for a point: the series or point name and its formatted value.getPoint(ChartContext ctx, int i) The point atindexfor a shared tooltip, or null.intThe number of points along x, for a shared tooltip; -1 when not index aligned.doublegetValue(int i) The value on spokei.hitTest(ChartContext ctx, int x, int y, int radius) Finds the data point nearest a screen position.booleanTrue for series drawn against x and y axes; false for pies, treemaps and other series that fill the plot themselves.voidpaint(ChartContext ctx) Paints the series.setFillAlpha(float a) The opacity of the polygon's fill.setValues(double... v) Replaces the values, one per spoke, animated.Methods inherited from class Series
attached, dataChanged, detached, formatValue, getChart, getColor, getLegendEntryCount, getLegendEntryName, getName, getSelectablePointCount, getValueFormatter, getVisibilityFraction, getXBounds, getXBoundsWithin, getYBounds, handleTap, isGap, isLegendEntryVisible, isPointCountFromLayout, isSecondaryAxis, isShowValues, isVisible, lerp, paintLegendEntrySymbol, paintLegendSymbol, repaintChart, setColor, setName, setSecondaryAxis, setShowValues, setValueFormatter, setVisible, toggleLegendEntry, transitionEnded
-
Constructor Details
-
RadarSeries
-
-
Method Details
-
isCartesian
public boolean isCartesian()Description copied from class:SeriesTrue for series drawn against x and y axes; false for pies, treemaps and other series that fill the plot themselves.- Specified by:
isCartesianin classSeries
-
setValues
Replaces the values, one per spoke, animated.
Parameters
v: the values
Returns
this series
-
getValue
public double getValue(int i) The value on spokei. -
setFillAlpha
The opacity of the polygon's fill.
Parameters
a: 0 to 1
Returns
this series
-
captureTransitionStart
protected void captureTransitionStart()Description copied from class:SeriesRecords the values currently on screen as the start of the next transition. Called by the chart before data changes; a subclass with animated data overrides it.- Overrides:
captureTransitionStartin classSeries
-
captureEntryStart
protected void captureEntryStart()Description copied from class:SeriesRecords a zero baseline as the start of the entry animation.- Overrides:
captureEntryStartin classSeries
-
paint
Description copied from class:SeriesPaints the series.
Parameters
ctx: the current frame: graphics, plot area, axes and animation progress
-
getPointCount
public int getPointCount()Description copied from class:SeriesThe number of points along x, for a shared tooltip; -1 when not index aligned.- Overrides:
getPointCountin classSeries
-
getPoint
Description copied from class:SeriesThe point atindexfor a shared tooltip, or null. -
hitTest
Description copied from class:SeriesFinds the data point nearest a screen position.
Parameters
-
ctx: the frame the series was last painted in -
x: chart relative x -
y: chart relative y -
radius: how far from the point a touch may land and still hit it
Returns
the point, or null
-
-
formatTooltip
Description copied from class:SeriesThe tooltip row for a point: the series or point name and its formatted value. Series with several values per point (open/high/low/close, ranges, box plots) override this.
Parameters
-
ctx: the last paint context -
p: the point
Returns
one line of text
- Overrides:
formatTooltipin classSeries
-
-
collectTableRows
Description copied from class:SeriesAdds this series' data to an accessible table, one
{series, item, value}row per point. Used byChart.toTable()and the chart's accessibility text.Parameters
rows: the list to append rows to
- Overrides:
collectTableRowsin classSeries
-