catHistPlot
The catHistPlot
method creates category histograms using data from Deephaven tables or arrays.
Syntax
catHistPlot(seriesName, source, valueCol)
catHistPlot(seriesName, values)
Parameters
Parameter | Type | Description |
---|---|---|
seriesName | String | The name (as a String) you want to use to identify the series on the plot itself. |
source | table | The table that holds the data to be plotted. |
valueCol | String | The name of the column containing the discrete values. |
values | array | 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()
- source
- result