From 4b12c73b11de8dc7f49e622fe069f8b75d854284 Mon Sep 17 00:00:00 2001 From: Bill Date: Wed, 6 Jun 2018 11:34:32 -0700 Subject: [PATCH] added sample code comment --- bargraph/widget.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/bargraph/widget.go b/bargraph/widget.go index 3b57bdcd..0e798952 100644 --- a/bargraph/widget.go +++ b/bargraph/widget.go @@ -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)