Documentation ¶
Index ¶
- func RickshawExtensionsReport(data TemplateData) string
- func StreamRickshawExtensionsReport(qw422016 *qt422016.Writer, data TemplateData)
- func WriteRickshawExtensionsReport(qq422016 qtio422016.Writer, data TemplateData)
- type DataInfoJs
- type Item
- type MonthData
- type RickshawData
- type RickshawDataFormatted
- type Series
- type TemplateData
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RickshawExtensionsReport ¶
func RickshawExtensionsReport(data TemplateData) string
func StreamRickshawExtensionsReport ¶
func StreamRickshawExtensionsReport(qw422016 *qt422016.Writer, data TemplateData)
func WriteRickshawExtensionsReport ¶
func WriteRickshawExtensionsReport(qq422016 qtio422016.Writer, data TemplateData)
Types ¶
type DataInfoJs ¶
type DataInfoJs struct { Color string `json:"color,omitempty"` Data []Item `json:"data"` Name string `json:"name"` }
DataInfoJS is the series item to be sent to the Rickshaw extensions JS code.
type MonthData ¶
type MonthData struct { SeriesName string MonthS string YearS string Dt6 int32 Value int64 ValueS string }
MonthData is the input value to be converted into Rickshaw items
func (*MonthData) RickshawItem ¶
type RickshawData ¶
func NewMonthlyRickshawDataFromSlotSeriesSet ¶
func NewMonthlyRickshawDataFromSlotSeriesSet(set slot.SlotDataSeriesSet) RickshawData
func NewRickshawData ¶
func NewRickshawData() RickshawData
func (*RickshawData) AddItem ¶
func (rd *RickshawData) AddItem(item Item)
AddItem adds an item to the report
func (*RickshawData) Formatted ¶
func (rd *RickshawData) Formatted() (RickshawDataFormatted, error)
Formatted returns formatted information ready for Rickshaw
func (*RickshawData) Inflate ¶
func (rd *RickshawData) Inflate()
type RickshawDataFormatted ¶
type RickshawDataFormatted struct { SeriesNames []string SeriesData [][]Item FormattedData []DataInfoJs }
func NewRickshawDataFormattedFromDateHistogram ¶
func NewRickshawDataFormattedFromDateHistogram(timeset interval.TimeSeriesSet) RickshawDataFormatted
type TemplateData ¶
type TemplateData struct { HeaderHTML string ReportName string ReportLink string RickshawURL string RickshawDataFormatted RickshawDataFormatted ItemType string IncludeDataTable bool IncludeDataTableTotals bool }
func (*TemplateData) FormattedDataJSON ¶
func (td *TemplateData) FormattedDataJSON() []byte
func (*TemplateData) TableData ¶
func (td *TemplateData) TableData() ([]string, [][]string)
Click to show internal directories.
Click to hide internal directories.