Skip to main content
Version: Java (Groovy)

catHistPlot

The catHistPlot method creates category histograms using data from Deephaven tables or arrays.

Syntax

catHistPlot(seriesName, categories)
catHistPlot(seriesName, t, categories)
catHistPlot(seriesName, sds, categories)

Parameters

ParameterTypeDescription
seriesNameString

The name (as a String) you want to use to identify the series on the plot itself.

tTable

The table that holds the data to be plotted.

sdsSelectableDataSet

The SelectableDataSet that holds the data to be plotted.

categoriesdouble[]

The array containing the discrete values.

categoriesfloat[]

The array containing the discrete values.

categoriesint[]

The array containing the discrete values.

categorieslong[]

The array containing the discrete values.

categoriesString

The name of a column in Table t. This argument cannot be used without a Table or a SelectableDataSet.

categoriesList<T>

The list of objects containing the discrete values.

Returns

A category histogram plot.

Examples

The following example plots data from a Deephaven table.

source = newTable(
intCol("Keys", 3, 2, 2, 1, 1, 1)
)

result = catHistPlot("Keys Count", source, "Keys")
.chartTitle("Count Of Each Key")
.show()