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
|
package bargraph
|
||||||
|
|
||||||
|
/**************
|
||||||
|
This is a demo bargraph that just populates some random date/val data
|
||||||
|
*/
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
|
||||||
"math/rand"
|
"math/rand"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
@ -26,7 +29,7 @@ type Widget struct {
|
|||||||
// NewWidget Make new instance of widget
|
// NewWidget Make new instance of widget
|
||||||
func NewWidget() *Widget {
|
func NewWidget() *Widget {
|
||||||
widget := Widget{
|
widget := Widget{
|
||||||
BarGraph: wtf.NewBarGraph(" Bar Graph", "bargraph", false),
|
BarGraph: wtf.NewBarGraph(" Sample Bar Graph", "bargraph", false),
|
||||||
}
|
}
|
||||||
|
|
||||||
widget.View.SetWrap(true)
|
widget.View.SetWrap(true)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user