Class ChartData
java.lang.Object
io.deephaven.web.client.api.widget.plot.ChartData
Helper class to manage snapshots and deltas. Keeps a contiguous JS array of data per column in the underlying table,
and supports a mapping function to let client code translate data in some way for display and caches the translated
values.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionelemental2.core.JsArray<jsinterop.base.Any> getColumn(String columnName, JsFunction<jsinterop.base.Any, jsinterop.base.Any> mappingFunc, TableData currentUpdate) Returns the cached data forcolumnName.voidremoveColumn(String columnName, JsFunction<jsinterop.base.Any, jsinterop.base.Any> mappingFunc) Removes a column from the cache, avoiding extra computation on incoming events, and possibly freeing some memory.voidupdate(SubscriptionTableData tableData) Updates cached column data to reflect a subscription update.
-
Constructor Details
-
ChartData
-
-
Method Details
-
update
Updates cached column data to reflect a subscription update.This applies row removals, insertions, and modifications to any cached column arrays so they remain aligned with the table's current row order.
- Parameters:
tableData- the subscription update to apply
-