Class ChartData

java.lang.Object
io.deephaven.web.client.api.widget.plot.ChartData

@JsType(namespace="dh.plot") public class ChartData extends Object
Helper class to manage snapshots and deltas and keep not only a contiguous JS array of data per column in the underlying table, but also support a mapping function to let client code translate data in some way for display and keep that cached as well.
  • Constructor Details

    • ChartData

      public ChartData(JsTable table)
  • Method Details

    • update

      public void update(SubscriptionTableData tableData)
    • getColumn

      public elemental2.core.JsArray<jsinterop.base.Any> getColumn(String columnName, JsFunction<jsinterop.base.Any,jsinterop.base.Any> mappingFunc, TableData currentUpdate)
    • removeColumn

      public void removeColumn(String columnName, JsFunction<jsinterop.base.Any,jsinterop.base.Any> mappingFunc)
      Removes some column from the cache, avoiding extra computation on incoming events, and possibly freeing some memory. If this pair of column name and map function are requested again, it will be recomputed from scratch.