Versions in this module Expand all Collapse all v0 v0.2.0 Dec 1, 2020 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 + SupportsTimeRange bool + 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 Line struct + Color string + IsFilled bool + Name string + Param string + func NewLine() *Line + type LineChart struct + Lines []*Line + Max float64 + Params []string + func (this *LineChart) AddLine(line *Line) + func (this *LineChart) AllParamNames() []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