package charts import ( "fmt" "os" ) func ExampleLineChart() { c := NewLineChart(100, 100, LineValue{ Value: 1, }, LineValue{ Value: 2, }, LineValue{ Value: 4, }, LineValue{ Value: 8, }, LineValue{ Value: 16, }, LineValue{ Value: 32, }, ). Min(0). Max(40). Foreground("purple"). Background("pink"). SVG(). GetMarkup() output := []byte(`` + c + ``) os.WriteFile("./line_chart.html", []byte(output), 0666) fmt.Println(c) // Output: }