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>
  • Field Summary

    Fields inherited from class org.knowm.xchart.internal.chartpart.Chart

    annotations, axisPair, chartTitle, legend, plot, seriesMap, styler
  • 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)
    Constructor
    RadarChart(int width, int height, Theme theme)
    Constructor
    RadarChart(RadarChartBuilder radarChartBuilder)
    Constructor
  • Method Summary

    Modifier and Type
    Method
    Description
    addSeries(String seriesName, double[] values)
    Add a series for a Radar type chart
    addSeries(String seriesName, double[] values, String[] tooltipOverrides)
    Add a series for a Radar type chart
     
    void
    paint(Graphics2D g, int width, int height)
     
    void
    setRadiiLabels(String[] radiiLabels)
    Sets the radii labels

    Methods 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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • 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 radarChartBuilder)
      Constructor
      Parameters:
      radarChartBuilder -
  • Method Details

    • getRadiiLabels

      public String[] getRadiiLabels()
    • setRadiiLabels

      public void setRadiiLabels(String[] radiiLabels)
      Sets the radii labels
      Parameters:
      radiiLabels -
    • 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 class org.knowm.xchart.internal.chartpart.Chart<RadarStyler,RadarSeries>