Skip to main content
Version: Java (Groovy)

catHistPlot

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

Syntax

catHistPlot(seriesName, source, valueCol)
catHistPlot(seriesName, values)

Parameters

ParameterTypeDescription
seriesNameString

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

sourcetable

The table that holds the data to be plotted.

valueColString

The name of the column containing the discrete values.

valuesarray

The array 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()