mirror of
https://github.com/taigrr/wtf
synced 2025-01-18 04:03:14 -08:00
added sample code comment
This commit is contained in:
parent
606c824a28
commit
4b12c73b11
@ -1,7 +1,10 @@
|
||||
package bargraph
|
||||
|
||||
/**************
|
||||
This is a demo bargraph that just populates some random date/val data
|
||||
*/
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"math/rand"
|
||||
"time"
|
||||
|
||||
@ -26,7 +29,7 @@ type Widget struct {
|
||||
// NewWidget Make new instance of widget
|
||||
func NewWidget() *Widget {
|
||||
widget := Widget{
|
||||
BarGraph: wtf.NewBarGraph(" Bar Graph", "bargraph", false),
|
||||
BarGraph: wtf.NewBarGraph(" Sample Bar Graph", "bargraph", false),
|
||||
}
|
||||
|
||||
widget.View.SetWrap(true)
|
||||
|
Loading…
x
Reference in New Issue
Block a user