s/NewLineChart/NewPlot in examples

This commit is contained in:
Caleb Bassi 2019-01-25 03:05:49 -08:00
parent 0eb6d61079
commit e0e85dab9d
2 changed files with 4 additions and 4 deletions

View File

@ -88,7 +88,7 @@ func main() {
return ps
})()
lc := widgets.NewLineChart()
lc := widgets.NewPlot()
lc.Title = "dot-mode Line Chart"
lc.Data = make([][]float64, 1)
lc.Data[0] = sinData
@ -106,7 +106,7 @@ func main() {
bc.BarColors[0] = ui.ColorGreen
bc.NumStyles[0] = ui.NewStyle(ui.ColorBlack)
lc2 := widgets.NewLineChart()
lc2 := widgets.NewPlot()
lc2.Title = "braille-mode Line Chart"
lc2.Data = make([][]float64, 1)
lc2.Data[0] = sinData

View File

@ -38,7 +38,7 @@ func main() {
slg := widgets.NewSparklineGroup(sl)
slg.Title = "Sparkline"
lc := widgets.NewLineChart()
lc := widgets.NewPlot()
lc.Title = "braille-mode Line Chart"
lc.Data = append(lc.Data, sinFloat64)
lc.AxesColor = ui.ColorWhite
@ -63,7 +63,7 @@ func main() {
"",
"[3] Uploading File 3",
}
ls.Border = false
ls.Border = false
p := widgets.NewParagraph()
p.Text = "<> This row has 3 columns\n<- Widgets can be stacked up like left side\n<- Stacked widgets are treated as a single widget"