Package org.knowm.xchart
Class RadarChart
- java.lang.Object
-
- org.knowm.xchart.internal.chartpart.Chart<RadarStyler,RadarSeries>
-
- org.knowm.xchart.RadarChart
-
public class RadarChart extends org.knowm.xchart.internal.chartpart.Chart<RadarStyler,RadarSeries>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
RadarChart.RadarRenderStyle
-
Field Summary
Fields Modifier and Type Field Description protected String[]
variableLabels
-
Constructor Summary
Constructors Constructor Description RadarChart(int width, int height)
Constructor - the default Chart Theme will be used (XChartTheme)RadarChart(int width, int height, Styler.ChartTheme chartTheme)
ConstructorRadarChart(int width, int height, Theme theme)
ConstructorRadarChart(RadarChartBuilder chartBuilder)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RadarSeries
addSeries(String seriesName, double[] values)
Add a series for a Radar type chartRadarSeries
addSeries(String seriesName, double[] values, String[] tooltipOverrides)
Add a series for a Radar type chartRadarChart.RadarRenderStyle
getRadarRenderStyle()
String[]
getVariableLabels()
void
paint(Graphics2D g, int width, int height)
void
setRadarRenderStyle(RadarChart.RadarRenderStyle radarRenderStyle)
void
setVariableLabels(String[] variableLabels)
-
Methods inherited from class org.knowm.xchart.internal.chartpart.Chart
getHeight, getSeriesMap, getStyler, getTitle, getToolTips, getWidth, getXAxisTitle, getYAxisGroupTitle, getYAxisLabelOverrideMap, getYAxisTitle, paintBackground, removeSeries, setHeight, setTitle, setWidth, setXAxisLabelOverrideMap, setXAxisTitle, setYAxisGroupTitle, setYAxisLabelOverrideMap, setYAxisLabelOverrideMap, setYAxisTitle
-
-
-
-
Field Detail
-
variableLabels
protected String[] variableLabels
-
-
Constructor Detail
-
RadarChart
public RadarChart(int width, int height)
Constructor - the default Chart Theme will be used (XChartTheme)- Parameters:
width
-height
-
-
RadarChart
public RadarChart(int width, int height, Theme theme)
Constructor- Parameters:
width
-height
-theme
- - pass in a instance of Theme class, probably a custom Theme.
-
RadarChart
public RadarChart(int width, int height, Styler.ChartTheme chartTheme)
Constructor- Parameters:
width
-height
-chartTheme
- - pass in the desired ChartTheme enum
-
RadarChart
public RadarChart(RadarChartBuilder chartBuilder)
Constructor- Parameters:
chartBuilder
-
-
-
Method Detail
-
addSeries
public RadarSeries addSeries(String seriesName, double[] values)
Add a series for a Radar type chart- Parameters:
seriesName
-values
-- Returns:
-
addSeries
public RadarSeries addSeries(String seriesName, double[] values, String[] tooltipOverrides)
Add a series for a Radar type chart- Parameters:
seriesName
-values
-tooltipOverrides
-- Returns:
-
paint
public void paint(Graphics2D g, int width, int height)
- Specified by:
paint
in classorg.knowm.xchart.internal.chartpart.Chart<RadarStyler,RadarSeries>
-
getVariableLabels
public String[] getVariableLabels()
-
setVariableLabels
public void setVariableLabels(String[] variableLabels)
-
getRadarRenderStyle
public RadarChart.RadarRenderStyle getRadarRenderStyle()
-
setRadarRenderStyle
public void setRadarRenderStyle(RadarChart.RadarRenderStyle radarRenderStyle)
-
-