aboutsummaryrefslogtreecommitdiff
path: root/vendor/github.com/buger/goterm/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/buger/goterm/README.md')
-rw-r--r--vendor/github.com/buger/goterm/README.md10
1 files changed, 5 insertions, 5 deletions
diff --git a/vendor/github.com/buger/goterm/README.md b/vendor/github.com/buger/goterm/README.md
index 536b7b885..fc74e2105 100644
--- a/vendor/github.com/buger/goterm/README.md
+++ b/vendor/github.com/buger/goterm/README.md
@@ -93,13 +93,13 @@ Chart example:
chart := tm.NewLineChart(100, 20)
data := new(tm.DataTable)
- data.addColumn("Time")
- data.addColumn("Sin(x)")
- data.addColumn("Cos(x+1)")
+ data.AddColumn("Time")
+ data.AddColumn("Sin(x)")
+ data.AddColumn("Cos(x+1)")
for i := 0.1; i < 10; i += 0.1 {
- data.addRow(i, math.Sin(i), math.Cos(i+1))
- }
+ data.AddRow(i, math.Sin(i), math.Cos(i+1))
+ }
tm.Println(chart.Draw(data))
```