Skip to main content
Version: Java (Groovy)

SelectableDataSetOneClick

A SelectableDataSetOneClick is used to provide a view of a selectable subset of a table. For example, in some selectable data sets, a GUI click can be used to select a portion of a table.

SelectableDataSetOneClick objects are useful for creating plots and figures with Deephaven methods that dynamically update when filters are applied. Dynamic plots can be created with the one_click method.

one_click

In this example, we create a new table with readCsv, and then convert that table into a SelectableDataSetOneClick with oneClick.

import static io.deephaven.csv.CsvTools.readCsv

source = readCsv("https://media.githubusercontent.com/media/deephaven/examples/main/CryptoCurrencyHistory/CSV/CryptoTrades_20210922.csv")
result = oneClick(source, true, "Instrument")

img

Methods that use SelectableDataSetOneClick

The following methods take a SelectableDataSet as an input: