Versions in this module Expand all Collapse all v0 v0.1.72 Sep 3, 2019 v0.1.12 Jun 25, 2020 v0.1.10 Mar 29, 2020 v0.1.9 Nov 25, 2019 v0.1.8 Sep 30, 2019 Changes in this version + type Line struct + Color string + IsFilled bool + Name string + Param string + func NewLine() *Line type LineChart + Lines []*Line + Max float64 + func (this *LineChart) AddLine(line *Line) + func (this *LineChart) AllParamNames() []string v0.1.7 Sep 1, 2019 Changes in this version type Chart + SupportsTimeRange bool v0.1.6 Jul 21, 2019 v0.1.5 Jun 9, 2019 v0.1.4 May 19, 2019 v0.1.3 May 4, 2019 v0.1.2 Apr 19, 2019 v0.0.9 Mar 4, 2019 Changes in this version + var AllChartTypes = []maps.Map + var StatChartTypes = []maps.Map + func FindChartTypeName(chartType string) string + type Chart struct + Columns uint8 + Description string + Id string + Name string + On bool + Options map[string]interface{} + Requirements []string + Type string + func NewChart() *Chart + func (this *Chart) AsObject() (ChartInterface, error) + func (this *Chart) Validate() error + type ChartInterface interface + AsJavascript func(options map[string]interface{}) (code string, err error) + type ClockChart struct + func (this *ClockChart) AsJavascript(options map[string]interface{}) (code string, err error) + type HTMLChart struct + HTML string + func (this *HTMLChart) AsJavascript(options map[string]interface{}) (code string, err error) + type JavascriptChart struct + Code string + func (this *JavascriptChart) AsJavascript(options map[string]interface{}) (code string, err error) + type LineChart struct + Limit int + Params []string + func (this *LineChart) AsJavascript(options map[string]interface{}) (code string, err error) + type PieChart struct + Limit int + Param string + func (this *PieChart) AsJavascript(options map[string]interface{}) (code string, err error) + type URLChart struct + URL string + func (this *URLChart) AsJavascript(options map[string]interface{}) (code string, err error) + type Widget struct + Author string + Charts []*Chart + Code string + CreatedAt int64 + Description string + Id string + Name string + On bool + Version string + func LoadAllWidgets() []*Widget + func NewWidget() *Widget + func NewWidgetFromId(widgetId string) *Widget + func (this *Widget) AddChart(chart *Chart) + func (this *Widget) Delete() error + func (this *Widget) FindChart(chartId string) *Chart + func (this *Widget) RemoveChart(chartId string) + func (this *Widget) Save() error