org.knowm.xchart
Class BubbleChart
- java.lang.Object
-
- org.knowm.xchart.internal.chartpart.Chart<BubbleStyler,BubbleSeries>
-
- org.knowm.xchart.BubbleChart
-
public class BubbleChart extends Chart<BubbleStyler,BubbleSeries>
-
-
Constructor Summary
Constructors Constructor and Description BubbleChart(BubbleChartBuilder chartBuilder)ConstructorBubbleChart(int width, int height)Constructor - the default Chart Theme will be used (XChartTheme)BubbleChart(int width, int height, Styler.ChartTheme chartTheme)ConstructorBubbleChart(int width, int height, Theme theme)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description BubbleSeriesaddSeries(java.lang.String seriesName, double[] xData, double[] yData, double[] bubbleData)Add a series for a Bubble type chart using using ListsBubbleSeriesaddSeries(java.lang.String seriesName, java.util.List<? extends java.lang.Number> xData, java.util.List<? extends java.lang.Number> yData, java.util.List<? extends java.lang.Number> bubbleData)Add a series for a Bubble type chart using using double arraysvoidpaint(java.awt.Graphics2D g, int width, int height)BubbleSeriesupdateBubbleSeries(java.lang.String seriesName, double[] newXData, double[] newYData, double[] newBubbleData)Update a series by updating the X-Axis, Y-Axis and bubble dataBubbleSeriesupdateBubbleSeries(java.lang.String seriesName, java.util.List<?> newXData, java.util.List<? extends java.lang.Number> newYData, java.util.List<? extends java.lang.Number> newBubbleData)Update a series by updating the X-Axis, Y-Axis and bubble data-
Methods inherited from class org.knowm.xchart.internal.chartpart.Chart
addAnnotation, getHeight, getSeriesMap, getStyler, getTitle, getWidth, getXAxisTitle, getYAxisGroupTitle, getYAxisLeftWidth, getYAxisTitle, removeSeries, setCustomXAxisTickLabelsFormatter, setCustomYAxisTickLabelsFormatter, setTitle, setXAxisTitle, setYAxisGroupTitle, setYAxisTitle
-
-
-
-
Constructor Detail
-
BubbleChart
public BubbleChart(int width, int height)Constructor - the default Chart Theme will be used (XChartTheme)- Parameters:
width-height-
-
BubbleChart
public BubbleChart(int width, int height, Theme theme)Constructor- Parameters:
width-height-theme- - pass in a instance of Theme class, probably a custom Theme.
-
BubbleChart
public BubbleChart(int width, int height, Styler.ChartTheme chartTheme)Constructor- Parameters:
width-height-chartTheme- - pass in the desired ChartTheme enum
-
BubbleChart
public BubbleChart(BubbleChartBuilder chartBuilder)
Constructor- Parameters:
chartBuilder-
-
-
Method Detail
-
addSeries
public BubbleSeries addSeries(java.lang.String seriesName, java.util.List<? extends java.lang.Number> xData, java.util.List<? extends java.lang.Number> yData, java.util.List<? extends java.lang.Number> bubbleData)
Add a series for a Bubble type chart using using double arrays- Parameters:
seriesName-xData- the X-Axis datayData- the Y-Axis databubbleData- the bubble data- Returns:
- A Series object that you can set properties on
-
addSeries
public BubbleSeries addSeries(java.lang.String seriesName, double[] xData, double[] yData, double[] bubbleData)
Add a series for a Bubble type chart using using Lists- Parameters:
seriesName-xData- the X-Axis datayData- the Y-Axis databubbleData- the bubble data- Returns:
-
updateBubbleSeries
public BubbleSeries updateBubbleSeries(java.lang.String seriesName, java.util.List<?> newXData, java.util.List<? extends java.lang.Number> newYData, java.util.List<? extends java.lang.Number> newBubbleData)
Update a series by updating the X-Axis, Y-Axis and bubble data- Parameters:
seriesName-newXData- - set null to be automatically generated as a list of increasing Integers starting from 1 and ending at the size of the new Y-Axis data list.newYData-newBubbleData- - set null if there are no error bars- Returns:
-
updateBubbleSeries
public BubbleSeries updateBubbleSeries(java.lang.String seriesName, double[] newXData, double[] newYData, double[] newBubbleData)
Update a series by updating the X-Axis, Y-Axis and bubble data- Parameters:
seriesName-newXData- - set null to be automatically generated as a list of increasing Integers starting from 1 and ending at the size of the new Y-Axis data list.newYData-newBubbleData- - set null if there are no error bars- Returns:
-
paint
public void paint(java.awt.Graphics2D g, int width, int height)- Specified by:
paintin classChart<BubbleStyler,BubbleSeries>
-
-
DataMelt 3.0 © DataMelt by jWork.ORG