Class CategoryDataSeriesMap
java.lang.Object
io.deephaven.plot.AbstractSeriesInternal
io.deephaven.plot.datasets.AbstractDataSeries
io.deephaven.plot.datasets.category.AbstractCategoryDataSeries
io.deephaven.plot.datasets.category.AbstractMapBasedCategoryDataSeries
io.deephaven.plot.datasets.category.CategoryDataSeriesMap
- All Implemented Interfaces:
CategoryDataSeries,CategoryDataSeriesInternal,DataSeries,DataSeriesInternal,PlotExceptionCause,Series,SeriesInternal,Serializable
A dataset for categorical data which maps a category to it's numerical value.
The number of categories and the number of values must be the same. Does not support repeat categories.
- See Also:
-
Field Summary
Fields inherited from interface io.deephaven.plot.datasets.category.CategoryDataSeries
CAT_SERIES_ORDER_COLUMN -
Constructor Summary
ConstructorsConstructorDescriptionCategoryDataSeriesMap(AxesImpl axes, int id, Comparable<?> name, IndexableData<T> categories, IndexableNumericData values) Creates an instance of CategoryDataSeriesMap, which maps a category to it's numerical value.CategoryDataSeriesMap(AxesImpl axes, int id, Comparable<?> name, IndexableData<T> categories, IndexableNumericData values, AbstractCategoryDataSeries series) -
Method Summary
Modifier and TypeMethodDescriptionGets the categories of the dataset.Create a copy of the series on a different set of axes.longgetCategoryLocation(Comparable category) Get the row key of the specified series.getValue(Comparable category) Gets the numeric value corresponding to the givencategory.intsize()Gets the size of this data set.Methods inherited from class io.deephaven.plot.datasets.category.AbstractMapBasedCategoryDataSeries
pointColor, pointColorInteger, pointLabel, pointShape, pointSizeMethods inherited from class io.deephaven.plot.datasets.category.AbstractCategoryDataSeries
colorsSetSpecific, errorBarColor, errorBarColor, errorBarColor, getColor, getGroup, getLabel, getLabel, getPiePercentLabelFormat, getPointShape, getPointShape, getPointSize, getPointSize, getSeriesColor, gradientVisible, group, labelsSetSpecific, lineColor, lineColor, lineColor, lineStyle, linesVisible, piePercentLabelFormat, pointColor, pointColor, pointColor, pointColor, pointColor, pointColor, pointColor, pointColor, pointColor, pointColorInteger, pointLabel, pointLabel, pointLabel, pointLabel, pointLabel, pointLabelFormat, pointShape, pointShape, pointShape, pointShape, pointShape, pointShape, pointShape, pointSize, pointSize, pointSize, pointSize, pointSize, pointSize, pointSize, pointSize, pointSize, pointSize, pointSize, pointSize, pointSize, pointSize, pointSize, pointsVisible, seriesColor, seriesColor, seriesColor, setPiePercentLabelFormat, shapesSetSpecific, sizesSetSpecific, toolTipPattern, xToolTipPattern, yToolTipPatternMethods inherited from class io.deephaven.plot.datasets.AbstractDataSeries
chart, getErrorBarColor, getGradientVisible, getLineColor, getLineStyle, getLinesVisible, getPointLabelFormat, getPointsVisible, getXToolTipPattern, getYToolTipPattern, setErrorBarColor, setErrorBarColor, setErrorBarColor, setGradientVisible, setLineColor, setLineColor, setLineColor, setLineStyle, setLinesVisible, setPointLabelFormat, setPointsVisible, setXToolTipPattern, setYToolTipPatternMethods inherited from class io.deephaven.plot.AbstractSeriesInternal
addPartitionedTableHandle, addSwappableTable, addTableHandle, axes, getPartitionedTableHandles, getSwappableTables, getTableHandles, id, name, removeTableHandleMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.deephaven.plot.datasets.category.CategoryDataSeries
pointColor, pointColorInteger, pointLabel, pointShape, pointSizeMethods inherited from interface io.deephaven.plot.datasets.category.CategoryDataSeriesInternal
drawYError, getEndY, getStartYMethods inherited from interface io.deephaven.plot.datasets.DataSeriesInternal
axes, chart, getErrorBarColor, getGradientVisible, getLineColor, getLineStyle, getLinesVisible, getPlotInfo, getPointLabelFormat, getPointsVisible, getXToolTipPattern, getYToolTipPattern, id, nameMethods inherited from interface io.deephaven.plot.SeriesInternal
addPartitionedTableHandle, addSwappableTable, addTableHandle, getPartitionedTableHandles, getSwappableTables, getTableHandles, removeTableHandle
-
Constructor Details
-
CategoryDataSeriesMap
public CategoryDataSeriesMap(AxesImpl axes, int id, Comparable<?> name, IndexableData<T> categories, IndexableNumericData values) Creates an instance of CategoryDataSeriesMap, which maps a category to it's numerical value.The number of categories and the number of values must be the same. Does not support null or repeat categories.
- Type Parameters:
T- type of the categorical data- Parameters:
axes-AxesImplon which this dataset is being plottedid- data series idname- series namecategories- categorical datavalues- numerical data- Throws:
IllegalArgumentException-categoriesandvaluesmust not be nullcategoriesandvaluesmust have equal sizesUnsupportedOperationException-categoriesmust not contain null valuescategoriesmust not contain repeat values
-
CategoryDataSeriesMap
public CategoryDataSeriesMap(AxesImpl axes, int id, Comparable<?> name, IndexableData<T> categories, IndexableNumericData values, AbstractCategoryDataSeries series)
-
-
Method Details
-
copy
Description copied from interface:SeriesInternalCreate a copy of the series on a different set of axes.- Parameters:
axes- new axes.- Returns:
- copy of the series on a different set of axes.
-
size
public int size()Description copied from interface:DataSeriesInternalGets the size of this data set.- Returns:
- size of this data set
-
categories
Description copied from interface:CategoryDataSeriesInternalGets the categories of the dataset.- Returns:
- all categories in the dataset
-
getValue
Description copied from interface:CategoryDataSeriesInternalGets the numeric value corresponding to the givencategory.- Parameters:
category- category- Returns:
- numeric value corresponding to the given
category
-
getCategoryLocation
Description copied from interface:CategoryDataSeriesInternalGet the row key of the specified series.- Returns:
-