public class BubbleChart extends org.knowm.xchart.internal.chartpart.Chart<BubbleStyler,BubbleSeries>
Constructor and Description |
---|
BubbleChart(BubbleChartBuilder chartBuilder)
Constructor
|
BubbleChart(int width,
int height)
Constructor - the default Chart Theme will be used (XChartTheme)
|
BubbleChart(int width,
int height,
Styler.ChartTheme chartTheme)
Constructor
|
BubbleChart(int width,
int height,
Theme theme)
Constructor
|
Modifier and Type | Method and Description |
---|---|
BubbleSeries |
addSeries(String seriesName,
double[] xData,
double[] yData,
double[] bubbleData)
Add a series for a Bubble type chart using using Lists
|
BubbleSeries |
addSeries(String seriesName,
List<? extends Number> xData,
List<? extends Number> yData,
List<? extends Number> bubbleData)
Add a series for a Bubble type chart using using double arrays
|
void |
paint(Graphics2D g,
int width,
int height) |
BubbleSeries |
updateBubbleSeries(String seriesName,
double[] newXData,
double[] newYData,
double[] newBubbleData)
Update a series by updating the X-Axis, Y-Axis and bubble data
|
BubbleSeries |
updateBubbleSeries(String seriesName,
List<?> newXData,
List<? extends Number> newYData,
List<? extends Number> newBubbleData)
Update a series by updating the X-Axis, Y-Axis and bubble data
|
getHeight, getSeriesMap, getStyler, getTitle, getToolTips, getWidth, getXAxisTitle, getYAxisGroupTitle, getYAxisLabelOverrideMap, getYAxisTitle, paintBackground, removeSeries, setHeight, setTitle, setWidth, setXAxisLabelOverrideMap, setXAxisTitle, setYAxisGroupTitle, setYAxisLabelOverrideMap, setYAxisLabelOverrideMap, setYAxisTitle
public BubbleChart(int width, int height)
width
- height
- public BubbleChart(int width, int height, Theme theme)
width
- height
- theme
- - pass in a instance of Theme class, probably a custom Theme.public BubbleChart(int width, int height, Styler.ChartTheme chartTheme)
width
- height
- chartTheme
- - pass in the desired ChartTheme enumpublic BubbleChart(BubbleChartBuilder chartBuilder)
chartBuilder
- public BubbleSeries addSeries(String seriesName, List<? extends Number> xData, List<? extends Number> yData, List<? extends Number> bubbleData)
seriesName
- xData
- the X-Axis dataxData
- the Y-Axis databubbleData
- the bubble datapublic BubbleSeries addSeries(String seriesName, double[] xData, double[] yData, double[] bubbleData)
seriesName
- xData
- the X-Axis dataxData
- the Y-Axis databubbleData
- the bubble datapublic BubbleSeries updateBubbleSeries(String seriesName, List<?> newXData, List<? extends Number> newYData, List<? extends Number> newBubbleData)
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 barspublic BubbleSeries updateBubbleSeries(String seriesName, double[] newXData, double[] newYData, double[] newBubbleData)
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 barspublic void paint(Graphics2D g, int width, int height)
paint
in class org.knowm.xchart.internal.chartpart.Chart<BubbleStyler,BubbleSeries>
Copyright © 2011–2018 Knowm Inc.. All rights reserved.