Package org.knowm.xchart
Class RadarChart
-
Field Summary
FieldsFields inherited from class org.knowm.xchart.internal.chartpart.Chart
annotations, axisPair, chartTitle, legend, plot, seriesMap, styler -
Constructor Summary
ConstructorsConstructorDescriptionRadarChart(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 radarChartBuilder) Constructor -
Method Summary
Modifier and TypeMethodDescriptionAdd a series for a Radar type chartAdd a series for a Radar type chartString[]voidpaint(Graphics2D g, int width, int height) private voidsanityCheck(String seriesName, double[] values, String[] annotations) voidsetRadiiLabels(String[] radiiLabels) Sets the radii labelsprivate voidset the series color based on themeMethods inherited from class org.knowm.xchart.internal.chartpart.Chart
addAnnotation, getChartXFromCoordinate, getChartYFromCoordinate, getChartYFromCoordinate, getHeight, getScreenXFromChart, getScreenYFromChart, getScreenYFromChart, getSeriesMap, getStyler, getTitle, getWidth, getXAxisTitle, getYAxisGroupTitle, getYAxisLeftWidth, getYAxisTitle, paintBackground, removeSeries, setCustomXAxisTickLabelsFormatter, setCustomYAxisTickLabelsFormatter, setHeight, setTitle, setWidth, setXAxisTitle, setYAxisGroupTitle, setYAxisTitle
-
Field Details
-
radiiLabels
-
-
Constructor Details
-
RadarChart
public RadarChart(int width, int height) Constructor - the default Chart Theme will be used (XChartTheme)- Parameters:
width-height-
-
RadarChart
Constructor- Parameters:
width-height-theme- - pass in a instance of Theme class, probably a custom Theme.
-
RadarChart
Constructor- Parameters:
width-height-chartTheme- - pass in the desired ChartTheme enum
-
RadarChart
Constructor- Parameters:
radarChartBuilder-
-
-
Method Details
-
getRadiiLabels
-
setRadiiLabels
Sets the radii labels- Parameters:
radiiLabels-
-
addSeries
Add a series for a Radar type chart- Parameters:
seriesName-values-- Returns:
-
addSeries
Add a series for a Radar type chart- Parameters:
seriesName-values-tooltipOverrides-- Returns:
-
sanityCheck
-
paint
- Specified by:
paintin classChart<RadarStyler,RadarSeries>
-
setSeriesStyles
private void setSeriesStyles()set the series color based on theme
-