Package org.knowm.xchart
Class PieChart
-
-
Constructor Summary
Constructors Constructor Description PieChart(int width, int height)
Constructor - the default Chart Theme will be used (XChartTheme)PieChart(int width, int height, Styler.ChartTheme chartTheme)
ConstructorPieChart(int width, int height, Theme theme)
ConstructorPieChart(PieChartBuilder chartBuilder)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PieSeries
addSeries(String seriesName, Number value)
Add a series for a Pie type chartvoid
paint(Graphics2D g, int width, int height)
PieSeries
updatePieSeries(String seriesName, Number value)
Update a series by updating the pie slide value-
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
-
-
-
-
Constructor Detail
-
PieChart
public PieChart(int width, int height)
Constructor - the default Chart Theme will be used (XChartTheme)- Parameters:
width
-height
-
-
PieChart
public PieChart(int width, int height, Theme theme)
Constructor- Parameters:
width
-height
-theme
- - pass in a instance of Theme class, probably a custom Theme.
-
PieChart
public PieChart(int width, int height, Styler.ChartTheme chartTheme)
Constructor- Parameters:
width
-height
-chartTheme
- - pass in the desired ChartTheme enum
-
PieChart
public PieChart(PieChartBuilder chartBuilder)
Constructor- Parameters:
chartBuilder
-
-
-
Method Detail
-
addSeries
public PieSeries addSeries(String seriesName, Number value)
Add a series for a Pie type chart- Parameters:
seriesName
-value
-- Returns:
-
updatePieSeries
public PieSeries updatePieSeries(String seriesName, Number value)
Update a series by updating the pie slide value- Parameters:
seriesName
-value
-- Returns:
-
paint
public void paint(Graphics2D g, int width, int height)
-
-