package charts import "fmt" type DateValue struct { Date string Value int } templ AreaChart(data []DateValue) { for _, d := range data {
${ d.Date } ${ fmt.Sprintf("%d", d.Value) }
} }