chartcn

Period comparison

This week vs last week overlay LineChart.

Period Comparison
This week vs last week sessions

Data shape

type PeriodPoint = {
  day: string // Mon…Sun (aligned weekday)
  thisWeek: number
  lastWeek: number
}

Align periods by weekday (or day-of-month). Style the prior period with strokeDasharray to keep hierarchy clear.

On this page