/// A small bar chart inside a coach answer: one bar per day against a dashed /// target outline. class CoachChart { /// "Target ยท 3 a day" String title; List labels; List values; /// Per-bar target; the dashed outline is drawn to this height. List targets; /// A bar to call out with [callout] above it, or -1. int highlight; String callout; /// Bars after this index have not happened yet (today and beyond). int lastComplete; CoachChart({ required this.title, required this.labels, required this.values, required this.targets, this.highlight = -1, this.callout = "", int? lastComplete, }) : lastComplete = lastComplete ?? labels.length - 1; }