mirror of https://github.com/gizak/termui.git
s/NewLineChart/NewPlot in examples
This commit is contained in:
parent
0eb6d61079
commit
e0e85dab9d
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue