About this drop
Everything on screen is drawn by one worklet on the UI thread into a single Skia canvas. One number runs it all: 0 is 1m, 5 is 1W, and anything in between is partway through a merge. The fingers move that number, a spring finishes it, and every frame is drawn from it, which is why a merge can be scrubbed, reversed and chained. The merge is real aggregation. Each timeframe is built from the one below, so a 4H candle is exactly its four 1H candles. During a merge every lower candle sits between its own place and its group's place, and its body and wick stretch toward the candle the group becomes. When they meet they are the same rectangle, so there is no crossfade. The time axis closes up at the same rate as the groups, pinned to the newest candle, so spacing stays even and the chart never shows a gap while older candles fill in from the left. A chip that is not next door is one direct merge: the candles that were on screen are drawn as they are, and everything older comes from the timeframe just below the target, so it stays a few hundred lines however far the jump is. The live trade updates the last candle of all six timeframes at once, so the merge stays true while the price moves. The price, the change and the position value are an odometer: a digit that changes rolls out through one edge of a one-line band while the new one rolls in through the other, and both carry a tint that drains away. Scrubbing snaps a hairline from candle to candle on a quick spring and hands that candle's close and date to the header. Frames are cheap: three cached layers, candles drawn as fat lines with one paint per colour, and a frame where nothing changed is not drawn at all. Fingers are tracked by id from the raw touches, and two of them are a pinch measured from the gap between them. To use your own data, replace the generated market with your candles for each timeframe and call the tick from your feed. Built on react-native-skia 3.13 (Graphite), Reanimated 4.5, Worklets 0.10, Gesture Handler and Pulsar, with Expo SDK 57 and React Native 0.86. It needs a development build (npx expo run:ios), not Expo Go. Checked on the iPhone 17 Pro simulator at a steady 60 frames a second. Android is configured but has not been run.