Baselines

Combine multiple timespans of the same series within one widget using the time-offset setting to compare current data versus data from some time ago.

[series]
  label = today
[series]
  label = yesterday
  time-offset = 1 day
[series]
  label = 1 week ago
  time-offset = 1 week

Additional Examples

See ATSD Use Cases for other uses for the time-offset setting:

  1. California Water Portals

    list ofs = 0, 1, 2, 3, 4, 5, 10
    for offs in ofs
    [series]
      label = @{offs} years ago
      time-offset = @{offs} year
        endfor
    

  2. Tax Day 2018: Americans Reverse the Late-Filing Trend

    [widget]
     var offsets = range(2,6)
     for ofs in offsets
     [series]
      label = @{2018-ofs}
      time-offset = @{ofs} year