Package org.knowm.xchart
Class DialChart
public class DialChart extends org.knowm.xchart.internal.chartpart.Chart<DialStyler,DialSeries>
-
Field Summary
Fields inherited from class org.knowm.xchart.internal.chartpart.Chart
annotations, axisPair, chartTitle, legend, plot, seriesMap, styler -
Constructor Summary
Constructors Constructor Description DialChart(int width, int height)Constructor - the default Chart Theme will be used (XChartTheme)DialChart(int width, int height, Styler.ChartTheme chartTheme)ConstructorDialChart(int width, int height, Theme theme)ConstructorDialChart(DialChartBuilder chartBuilder)Constructor -
Method Summary
Modifier and Type Method Description DialSeriesaddSeries(String seriesName, double value)Add a series for a Dial type chartDialSeriesaddSeries(String seriesName, double value, String label)Add a series for a Dial type chartvoidpaint(Graphics2D g, int width, int height)Methods inherited from class org.knowm.xchart.internal.chartpart.Chart
addAnnotation, getHeight, getSeriesMap, getStyler, getTitle, getWidth, getXAxisTitle, getYAxisGroupTitle, getYAxisLeftWidth, getYAxisTitle, paintBackground, removeSeries, setCustomXAxisTickLabelsFormatter, setCustomYAxisTickLabelsFormatter, setHeight, setTitle, setWidth, setXAxisTitle, setYAxisGroupTitle, setYAxisTitle
-
Constructor Details
-
DialChart
public DialChart(int width, int height)Constructor - the default Chart Theme will be used (XChartTheme)- Parameters:
width-height-
-
DialChart
Constructor- Parameters:
width-height-theme- - pass in a instance of Theme class, probably a custom Theme.
-
DialChart
Constructor- Parameters:
width-height-chartTheme- - pass in the desired ChartTheme enum
-
DialChart
Constructor- Parameters:
chartBuilder-
-
-
Method Details
-
addSeries
Add a series for a Dial type chart- Parameters:
seriesName-value-- Returns:
-
addSeries
Add a series for a Dial type chart- Parameters:
seriesName-value-label-- Returns:
-
paint
- Specified by:
paintin classorg.knowm.xchart.internal.chartpart.Chart<DialStyler,DialSeries>
-