piker icon indicating copy to clipboard operation
piker copied to clipboard

Downsampling sum-type flows data: like vlm

Open goodboy opened this issue 3 years ago • 0 comments

As per #302 we now aggressively leverage the m4 graphics downsampling algo for redic low latency chartingn on massive data sets, however this algo reduces based on maintaining range data on screen; this is not desired for accumulation type sampled data (such as in volume or histogram/bar charts) where we want to simply aggregate (aka sum()) all datums from an uppx range into each horizontal pixel slot.

In other words we need to adjust our implementation to accept additional reduction function(s) besides max()/min() so that when you zoom out on such data sets you see the accumulation of the data in each set of uppx-spanning pixel-bins instead of a lossy range representation as is used for price data.

goodboy avatar Jun 04 '22 17:06 goodboy