Class AxesChartSeriesCategory
java.lang.Object
org.knowm.xchart.internal.series.Series
org.knowm.xchart.internal.series.AxesChartSeries
org.knowm.xchart.internal.series.MarkerSeries
org.knowm.xchart.internal.series.AxesChartSeriesCategory
- Direct Known Subclasses:
BoxSeries, CategorySeries
A Series containing X and Y data to be plotted on a Chart with X and Y Axes. xData can be Number
or Date or String, hence a Listinvalid input: '<'?>
-
Nested Class Summary
Nested classes/interfaces inherited from class Series
Series.DataType -
Field Summary
FieldsFields inherited from class AxesChartSeries
xAxisDataType, xMax, xMin, yAxisType, yMax, yMin -
Constructor Summary
ConstructorsConstructorDescriptionAxesChartSeriesCategory(String name, List<?> xData, List<? extends Number> yData, List<? extends Number> extraValues, Series.DataType xAxisDataType) Constructor -
Method Summary
Modifier and TypeMethodDescriptionprotected void(package private) double[]findMinMax(Collection<?> data, Series.DataType dataType) Finds the min and max of a datasetprivate double[]findMinMaxWithErrorBars(Collection<? extends Number> data, Collection<? extends Number> errorBars) Finds the min and max of a dataset accounting for error barsCollection<? extends Number> Collection<?> getXData()Collection<? extends Number> getYData()voidreplaceData(List<?> newXData, List<? extends Number> newYData, List<? extends Number> newExtraValues) This is an internal method which shouldn't be called from client code.voidreplaceData(List<? extends Number> newYData) For box plot, replace yDataMethods inherited from class MarkerSeries
getMarker, getMarkerColor, setMarker, setMarkerColorMethods inherited from class AxesChartSeries
getLineColor, getLineStyle, getLineWidth, getxAxisDataType, getXMax, getXMin, getyAxisDataType, getYMax, getYMin, setLineColor, setLineStyle, setLineWidthMethods inherited from class Series
getFillColor, getLabel, getLegendRenderType, getName, getYAxisDecimalPattern, getYAxisGroup, isEnabled, isShowInLegend, setEnabled, setFillColor, setLabel, setShowInLegend, setYAxisDecimalPattern, setYAxisGroup
-
Field Details
-
xData
List<?> xData -
yData
-
extraValues
-
-
Constructor Details
-
AxesChartSeriesCategory
-
-
Method Details
-
replaceData
public void replaceData(List<?> newXData, List<? extends Number> newYData, List<? extends Number> newExtraValues) This is an internal method which shouldn't be called from client code. Use XYChart.updateXYSeries or CategoryChart.updateXYSeries instead!- Parameters:
newXData-newYData-newExtraValues-
-
replaceData
-
calculateMinMax
protected void calculateMinMax()- Specified by:
calculateMinMaxin classAxesChartSeries
-
findMinMaxWithErrorBars
private double[] findMinMaxWithErrorBars(Collection<? extends Number> data, Collection<? extends Number> errorBars) Finds the min and max of a dataset accounting for error bars- Parameters:
data-errorBars-- Returns:
-
findMinMax
Finds the min and max of a dataset- Parameters:
data-- Returns:
-
getXData
-
getYData
-
getExtraValues
-