r2/r2/templates/timeserieschart.html
${thing.title}| ${_("date")} | % for col in thing.columns: % if "color" in col: ${col['shortname']} | % else: ${col['shortname']} | % endif % endfor | --- | --- | --- | % for date, data in thing.rows:| % if thing.make_period_link: % endif % if thing.interval == "hour": ${babel.dates.format_datetime(date, format="short", locale=c.locale)} % elif thing.interval == "day": ${babel.dates.format_date(date, format="short", locale=c.locale)} % else: ${month_names[date.month]} % endif % if thing.make_period_link: % endif | % for datum in data: % if date < thing.latest_available_data: ${format_number(datum)} | % else: ${_("unavailable")} | % endif % endfor % endfor