I am wondering how I can create an effect of windowWithMaxCount, which would work like windowWithCount but the window size would change from 1 to maxCount.
What I am doing is drawing a line chart base on c stream of events. The line chart needs array of let say 50 points. When new point is arrive I need to push one point out on the right and put this new point on the left.
So in general observable.windowWithCount(50,1) does exactly that. The only problem that for the first window I have to wait until all 50 elements become available. During this time users see nothing on the screen.
What I want to happen instead is as soon as a first point arrives I'd like to get window of size 1, then window of size 2 etc until I get to window of size 50 (maxCount). At this point all subsequent windows would be size 50.
The effect on the screen would be line filling the screen from left to right until it feels all screen.