Price chart

One line that reads as a real price. Its end follows the live price, a press reads any point, and a range change is the old line turning into the new one.

Your balance
up over the past day
Sells at $0.0203

Specs

Every value is a token from Foundations. The names match Figma and the Flutter file.

Line
3 stroke, round caps and joins. status/success when the range is up, status/danger when it is down
Curve
73 points a range, joined by a monotone cubic: every turn is rounded and no high or low is invented
Fill
the line's colour, from 20% at the top of the chart to 0 at the bottom
Room
136 tall: 32 above the highest high for the time label, 12 under the lowest low, 6 on the right for the dot
End dot
10, in the line's colour. With a live price a ring leaves it every 2.4s
Live
the end of the line goes after each new price, about 8% of the way a frame (time constant 180ms). The scale moves at the same pace and steps outward at once, so the line is never cut
Live window
optional: the line also scrolls (one step every 1.6s in this example) and its end becomes a point of its own each step
Range change
the old line turns into the new one at the same pace, settled in about 550ms, while the gain rolls
Reading a point
a 1px hairline in text/tertiary, a 12 dot with a 24 halo on the line, the time in a 24 pill above it (the tooltip material, slightly glass). The part still to come drops to 28%
Touch
reading starts after 140ms or 6pt sideways, so a scroll that begins on the chart stays a scroll. One tick per point
Target line
1.5 dashed (6 and 6) in accent/fill, stopping 8 before its label on the right. The label steps aside while a point is read
Target and scale
the target may stretch the scale, but the price keeps at least half the height. A target further away sits on the top edge
Loading
a flat line in text/tertiary that breathes between 30% and 90%. When the data arrives the line turns into the chart
Reduced motion
no ring, no scroll and no easing: the line is redrawn in place

Usage

Do

  • Let the big number follow the line: the live price at rest, the point under the finger while one is read.
  • Keep the same number of points in every range, so one line can turn into the next.
  • Show the Auto sell target on the chart of the coin it belongs to.

Don't

  • Don't smooth the data. The curve rounds the turns; it never moves a point.
  • Don't add particles, shake or flashes when the price moves. It is a money app, not a casino.
  • Don't add a grid or axis labels. The number above and a press on the line give the value.

Accessibility

  • The chart is one focusable slider: Left and Right move a point, Page Up and Page Down ten, Home and End jump, Escape lets go.
  • Each point is read out as its value and its time.
  • Up and down are never colour alone: the arrow in the line above carries them.
  • The ring and the scroll stop under reduced motion.
  • Focus: a 2px focus/ring 2px outside the shape, for keyboard and switch control only. Targets are 44pt or more.