| Package | Description |
|---|---|
| com.orsoncharts.data |
Core data structures used as the building blocks for datasets in Orson
Charts.
|
| com.orsoncharts.data.category |
Datasets that can be used by the
CategoryPlot3D
class. |
| Modifier and Type | Class and Description |
|---|---|
class |
DefaultKeyedValues3D<S extends java.lang.Comparable<S>,R extends java.lang.Comparable<R>,C extends java.lang.Comparable<C>,V>
A three dimensional table of numerical values, implementing the
KeyedValues3D interface. |
| Modifier and Type | Method and Description |
|---|---|
static KeyedValues3D<java.lang.String,java.lang.String,java.lang.String,java.lang.Number> |
JSONUtils.readKeyedValues3D(java.io.Reader reader)
Parses character data from the reader and (if possible) creates a
KeyedValues3D instance. |
static KeyedValues3D<java.lang.String,java.lang.String,java.lang.String,java.lang.Number> |
JSONUtils.readKeyedValues3D(java.lang.String json)
Parses the supplied string and (if possible) creates a
KeyedValues3D instance. |
| Modifier and Type | Method and Description |
|---|---|
static <S extends java.lang.Comparable<S>> |
DataUtils.count(KeyedValues3D<S,?,?,?> data,
S seriesKey)
Returns the count of the non-
null entries in the dataset
for the specified series. |
static <C extends java.lang.Comparable<C>> |
DataUtils.countForColumn(KeyedValues3D<?,?,C,?> data,
C columnKey)
Returns the count of the non-
null entries in the dataset
for the specified column (all series). |
static <R extends java.lang.Comparable<R>> |
DataUtils.countForRow(KeyedValues3D<?,R,?,?> data,
R rowKey)
Returns the count of the non-
null entries in the dataset
for the specified row (all series). |
static <S extends java.lang.Comparable<S>,R extends java.lang.Comparable<R>,C extends java.lang.Comparable<C>> |
DataUtils.extractXYZDatasetFromColumns(KeyedValues3D<S,R,C,? extends java.lang.Number> source,
C xColKey,
C yColKey,
C zColKey)
Creates an
XYZDataset by extracting values from specified
columns in a KeyedValues3D instance, across all the available
rows (items where any of the x, y or z values is null are
skipped). |
static <S extends java.lang.Comparable<S>,R extends java.lang.Comparable<R>,C extends java.lang.Comparable<C>> |
DataUtils.extractXYZDatasetFromColumns(KeyedValues3D<S,R,C,? extends java.lang.Number> source,
C xColKey,
C yColKey,
C zColKey,
NullConversion nullConversion,
java.util.List<KeyedValues3DItemKey> exceptions)
Creates an
XYZDataset by extracting values from specified
columns in a KeyedValues3D instance. |
static <S extends java.lang.Comparable<S>,R extends java.lang.Comparable<R>,C extends java.lang.Comparable<C>> |
DataUtils.extractXYZDatasetFromRows(KeyedValues3D<S,R,C,? extends java.lang.Number> source,
R xRowKey,
R yRowKey,
R zRowKey)
Creates an
XYZDataset by extracting values from specified
rows in a KeyedValues3D instance, across all the available
columns (items where any of the x, y or z values is null
are skipped). |
static <S extends java.lang.Comparable<S>,R extends java.lang.Comparable<R>,C extends java.lang.Comparable<C>> |
DataUtils.extractXYZDatasetFromRows(KeyedValues3D<S,R,C,? extends java.lang.Number> source,
R xRowKey,
R yRowKey,
R zRowKey,
NullConversion nullConversion,
java.util.List<KeyedValues3DItemKey> exceptions)
Creates an
XYZDataset by extracting values from specified
rows in a KeyedValues3D instance. |
static <S extends java.lang.Comparable<S>,R extends java.lang.Comparable<R>,C extends java.lang.Comparable<C>,T> |
KeyedValues3DItemKeys.itemKeysForColumn(KeyedValues3D<S,R,C,T> data,
C columnKey)
Returns a collection containing all the item keys for the specified
column.
|
static <S extends java.lang.Comparable<S>,R extends java.lang.Comparable<R>,C extends java.lang.Comparable<C>,T> |
KeyedValues3DItemKeys.itemKeysForRow(KeyedValues3D<S,R,C,T> data,
R rowKey)
Returns a collection containing all the item keys for the specified
row.
|
static <S extends java.lang.Comparable<S>,R extends java.lang.Comparable<R>,C extends java.lang.Comparable<C>,T> |
KeyedValues3DItemKeys.itemKeysForSeries(KeyedValues3D<S,R,C,T> data,
S seriesKey)
Returns a collection containing all the item keys for the specified
series.
|
static <S extends java.lang.Comparable<S>> |
DataUtils.total(KeyedValues3D<S,?,?,? extends java.lang.Number> data,
S seriesKey)
Returns the total of the non-
null values in the dataset
for the specified series. |
static <C extends java.lang.Comparable<C>> |
DataUtils.totalForColumn(KeyedValues3D<?,?,C,? extends java.lang.Number> data,
C columnKey)
Returns the total of the non-
null entries in the dataset
for the specified column (all series). |
static <R extends java.lang.Comparable<R>> |
DataUtils.totalForRow(KeyedValues3D<?,R,?,? extends java.lang.Number> data,
R rowKey)
Returns the total of the non-
null entries in the dataset
for the specified row (all series). |
static java.lang.String |
JSONUtils.writeKeyedValues3D(KeyedValues3D dataset)
Returns a string containing the data in JSON format.
|
static void |
JSONUtils.writeKeyedValues3D(KeyedValues3D dataset,
java.io.Writer writer)
Writes the dataset in JSON format to the supplied writer.
|
| Modifier and Type | Interface and Description |
|---|---|
interface |
CategoryDataset3D<S extends java.lang.Comparable<S>,R extends java.lang.Comparable<R>,C extends java.lang.Comparable<C>>
An interface for a dataset with multiple series of data in the form of
(rowKey, columnKey, value). |
| Modifier and Type | Class and Description |
|---|---|
class |
StandardCategoryDataset3D<S extends java.lang.Comparable<S>,R extends java.lang.Comparable<R>,C extends java.lang.Comparable<C>>
A standard implementation of the
CategoryDataset3D interface. |