Transaction

inner class Transaction

Handles data updates. This is used via runTransaction.

Functions

Link copied to clipboard
Link copied to clipboard

Creates a CandlestickCartesianLayerModel.Partial with the provided prices, using their indices as the x values, and adds it to the CartesianChartModelProducer.Transaction’s CartesianLayerModel.Partial list. opening, closing, low, and high should have the same sizes.

Creates a CandlestickCartesianLayerModel.Partial with the provided x values (x) and prices and adds it to the CartesianChartModelProducer.Transaction’s CartesianLayerModel.Partial list. opening, closing, low, and high should have the same sizes.

Link copied to clipboard
fun extras(block: (MutableExtraStore) -> Unit)

Allows for adding auxiliary values, which can later be retrieved via CartesianChartModel.extraStore.