Scrub Bar Chart

Scrub Bar Chart

A bar chart drawn with plain shapes. The bars grow in with a stagger, dragging across highlights one bar with a floating tooltip and selection haptics, and switching periods sends a wave through the new values.

Luiz Mello
  • chart
  • tooltip
  • interactive

snippet.swift272 lines

6 files • Scroll to see all →
public struct ScrubBarChartEntry: Equatable {    public let label: String    public let value: Double​    public init(_ label: String, _ value: Double) {        self.label = label        self.value = value    }}
Viewing: Model.swift•1 of 6