4 ms·
Sparklines are good for at-a-glance monitoring, as they're a way to show travelling-window patterns in a small space. They're useless for numbers, but great for
by vacri 9y ago
Sparklines are good for at-a-glance monitoring, as they're a way to show travelling-window patterns in a small space. They're useless for numbers, but great for patterns.
- musage 9y agoI prefer something to that that I'm sure that has a name, but I don't know it (but would love to), at least for real-time things: Let's say you have X buckets, with Y slots each. Each tick, you put the current value in the current slot of the first bucket, and advance the index by one. When the index reaches the number of slots, reset the index to 0, and put the average of all slots of the first bucket into the current slot of the second bucket. When the second bucket overflows, put the average into the current slot of the third bucket, and so on. This way you can fit both current and very old values into the same tiny graph, to give a rough impression of "level of activity" (e.g. for tray icons). If that doesn't have a name yet because I invented it (I doubt that), I call it syrup buckets (syrup is how it can look like depending on the amount of buckets, slots and the tick speed).