Documentation ¶
Index ¶
- type Bar
- func (b *Bar) WithDataDataSets(label string, data []interface{}) func(request *BarRequest)
- func (b *Bar) WithDataLabels(value []interface{}) func(request *BarRequest)
- func (b *Bar) WithOptions(key string, value interface{}) func(request *BarRequest)
- func (b *Bar) WithTitle(title string) func(request *BarRequest)
- func (b *Bar) WithXLabel(xLabel string) func(request *BarRequest)
- func (b *Bar) WithYLabel(yLabel string) func(request *BarRequest)
- type BarRequest
- type Charts
- type ChartsInterface
- type Line
- func (L *Line) WithDataDataSets(label string, data []interface{}) func(request *LineRequest)
- func (L *Line) WithDataLabels(value []interface{}) func(request *LineRequest)
- func (L *Line) WithOptions(key string, value interface{}) func(request *LineRequest)
- func (L *Line) WithTitle(title string) func(request *LineRequest)
- func (L *Line) WithXLabel(xLabel string) func(request *LineRequest)
- func (L *Line) WithYLabel(yLabel string) func(request *LineRequest)
- type LineRequest
- type Pie
- func (p *Pie) WithDataDataSets(label string, data []interface{}) func(request *PieRequest)
- func (p *Pie) WithDataLabels(value []interface{}) func(request *PieRequest)
- func (p *Pie) WithOptions(key string, value interface{}) func(request *PieRequest)
- func (p *Pie) WithTitle(title string) func(request *PieRequest)
- func (p *Pie) WithXLabel(xLabel string) func(request *PieRequest)
- func (p *Pie) WithYLabel(yLabel string) func(request *PieRequest)
- type PieRequest
- type Radar
- func (r *Radar) WithDataDataSets(label string, data []interface{}) func(request *RadarRequest)
- func (r *Radar) WithDataLabels(value []interface{}) func(request *RadarRequest)
- func (r *Radar) WithOptions(key string, value interface{}) func(request *RadarRequest)
- func (r *Radar) WithTitle(title string) func(request *RadarRequest)
- func (r *Radar) WithXLabel(xLabel string) func(request *RadarRequest)
- func (r *Radar) WithYLabel(yLabel string) func(request *RadarRequest)
- type RadarRequest
- type StackedBar
- func (s *StackedBar) WithDataDataSets(label string, data []interface{}) func(request *StackedBarRequest)
- func (s *StackedBar) WithDataLabels(value []interface{}) func(request *StackedBarRequest)
- func (s *StackedBar) WithOptions(key string, value interface{}) func(request *StackedBarRequest)
- func (s *StackedBar) WithTitle(title string) func(request *StackedBarRequest)
- func (s *StackedBar) WithXLabel(xLabel string) func(request *StackedBarRequest)
- func (s *StackedBar) WithYLabel(yLabel string) func(request *StackedBarRequest)
- type StackedBarRequest
- type Transport
- type WithData
- type WithDataCollection
- type WithDataDataSets
- type WithOption
- type WithTitle
- type WithXLabel
- type WithYLabel
- type XY
- func (XY *XY) WithDataDataSets(label string, data []interface{}) func(request *XYRequest)
- func (XY *XY) WithDataLabels(value []interface{}) func(request *XYRequest)
- func (XY XY) WithOptions(key string, value interface{}) func(request *XYRequest)
- func (XY XY) WithTitle(title string) func(request *XYRequest)
- func (XY XY) WithXLabel(xLabel string) func(request *XYRequest)
- func (XY XY) WithYLabel(yLabel string) func(request *XYRequest)
- type XYRequest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bar ¶
type Bar func(title string, o ...func(request *BarRequest)) func(w http.ResponseWriter, r *http.Request)
func (*Bar) WithDataDataSets ¶
func (b *Bar) WithDataDataSets(label string, data []interface{}) func(request *BarRequest)
func (*Bar) WithDataLabels ¶
func (b *Bar) WithDataLabels(value []interface{}) func(request *BarRequest)
func (*Bar) WithOptions ¶
func (b *Bar) WithOptions(key string, value interface{}) func(request *BarRequest)
func (*Bar) WithTitle ¶
func (b *Bar) WithTitle(title string) func(request *BarRequest)
func (*Bar) WithXLabel ¶
func (b *Bar) WithXLabel(xLabel string) func(request *BarRequest)
func (*Bar) WithYLabel ¶
func (b *Bar) WithYLabel(yLabel string) func(request *BarRequest)
type BarRequest ¶
type BarRequest struct { WithTitle WithXLabel WithYLabel WithDataCollection WithOption }
func (BarRequest) Plot ¶
func (bar BarRequest) Plot(t Transport) func(w http.ResponseWriter, r *http.Request)
type ChartsInterface ¶
type Line ¶
type Line func(title string, o ...func(request *LineRequest)) func(w http.ResponseWriter, r *http.Request)
func (*Line) WithDataDataSets ¶
func (L *Line) WithDataDataSets(label string, data []interface{}) func(request *LineRequest)
func (*Line) WithDataLabels ¶
func (L *Line) WithDataLabels(value []interface{}) func(request *LineRequest)
func (*Line) WithOptions ¶
func (L *Line) WithOptions(key string, value interface{}) func(request *LineRequest)
func (*Line) WithTitle ¶
func (L *Line) WithTitle(title string) func(request *LineRequest)
func (*Line) WithXLabel ¶
func (L *Line) WithXLabel(xLabel string) func(request *LineRequest)
func (*Line) WithYLabel ¶
func (L *Line) WithYLabel(yLabel string) func(request *LineRequest)
type LineRequest ¶
type LineRequest struct { WithTitle WithXLabel WithYLabel WithDataCollection WithOption }
func (LineRequest) Plot ¶
func (L LineRequest) Plot(t Transport) func(w http.ResponseWriter, r *http.Request)
func (LineRequest) Render ¶
func (L LineRequest) Render(t Transport) func(w http.ResponseWriter, r *http.Request)
type Pie ¶
type Pie func(title string, o ...func(request *PieRequest)) func(w http.ResponseWriter, r *http.Request)
func (*Pie) WithDataDataSets ¶
func (p *Pie) WithDataDataSets(label string, data []interface{}) func(request *PieRequest)
func (*Pie) WithDataLabels ¶
func (p *Pie) WithDataLabels(value []interface{}) func(request *PieRequest)
func (*Pie) WithOptions ¶
func (p *Pie) WithOptions(key string, value interface{}) func(request *PieRequest)
func (*Pie) WithTitle ¶
func (p *Pie) WithTitle(title string) func(request *PieRequest)
func (*Pie) WithXLabel ¶
func (p *Pie) WithXLabel(xLabel string) func(request *PieRequest)
func (*Pie) WithYLabel ¶
func (p *Pie) WithYLabel(yLabel string) func(request *PieRequest)
type PieRequest ¶
type PieRequest struct { WithTitle WithXLabel WithYLabel WithDataCollection WithOption }
func (PieRequest) Plot ¶
func (bar PieRequest) Plot(t Transport) func(w http.ResponseWriter, r *http.Request)
type Radar ¶
type Radar func(title string, o ...func(request *RadarRequest)) func(w http.ResponseWriter, r *http.Request)
func (*Radar) WithDataDataSets ¶
func (r *Radar) WithDataDataSets(label string, data []interface{}) func(request *RadarRequest)
func (*Radar) WithDataLabels ¶
func (r *Radar) WithDataLabels(value []interface{}) func(request *RadarRequest)
func (*Radar) WithOptions ¶
func (r *Radar) WithOptions(key string, value interface{}) func(request *RadarRequest)
func (*Radar) WithTitle ¶
func (r *Radar) WithTitle(title string) func(request *RadarRequest)
func (*Radar) WithXLabel ¶
func (r *Radar) WithXLabel(xLabel string) func(request *RadarRequest)
func (*Radar) WithYLabel ¶
func (r *Radar) WithYLabel(yLabel string) func(request *RadarRequest)
type RadarRequest ¶
type RadarRequest struct { WithTitle WithXLabel WithYLabel WithDataCollection WithOption }
func (RadarRequest) Plot ¶
func (radar RadarRequest) Plot(t Transport) func(w http.ResponseWriter, r *http.Request)
type StackedBar ¶
type StackedBar func(title string, o ...func(request *StackedBarRequest)) func(w http.ResponseWriter, r *http.Request)
func (*StackedBar) WithDataDataSets ¶
func (s *StackedBar) WithDataDataSets(label string, data []interface{}) func(request *StackedBarRequest)
func (*StackedBar) WithDataLabels ¶
func (s *StackedBar) WithDataLabels(value []interface{}) func(request *StackedBarRequest)
func (*StackedBar) WithOptions ¶
func (s *StackedBar) WithOptions(key string, value interface{}) func(request *StackedBarRequest)
func (*StackedBar) WithTitle ¶
func (s *StackedBar) WithTitle(title string) func(request *StackedBarRequest)
func (*StackedBar) WithXLabel ¶
func (s *StackedBar) WithXLabel(xLabel string) func(request *StackedBarRequest)
func (*StackedBar) WithYLabel ¶
func (s *StackedBar) WithYLabel(yLabel string) func(request *StackedBarRequest)
type StackedBarRequest ¶
type StackedBarRequest struct { WithTitle WithXLabel WithYLabel WithDataCollection WithOption }
func (StackedBarRequest) Plot ¶
func (sta StackedBarRequest) Plot(t Transport) func(w http.ResponseWriter, r *http.Request)
type WithData ¶
type WithData struct { Labels []interface{} `json:"labels"` DataSets []WithDataDataSets `json:"datasets"` }
type WithDataCollection ¶
type WithDataCollection struct {
Data WithData `json:"data"`
}
type WithDataDataSets ¶
type WithDataDataSets struct { Label string `json:"label"` Data []interface{} `json:"data"` }
type WithOption ¶
type WithOption struct {
Options map[string]interface{} `json:"options,omitempty"`
}
func (WithOption) Del ¶
func (W WithOption) Del(key string)
func (WithOption) Get ¶
func (W WithOption) Get(key string) interface{}
func (WithOption) Set ¶
func (W WithOption) Set(key string, value interface{})
type WithXLabel ¶
type WithXLabel struct {
XLabel string `json:"xLabel,omitempty"`
}
type WithYLabel ¶
type WithYLabel struct {
YLabel string `json:"yLabel,omitempty"`
}
type XY ¶
type XY func(title string, o ...func(request *XYRequest)) func(w http.ResponseWriter, r *http.Request)
func (*XY) WithDataDataSets ¶
func (*XY) WithDataLabels ¶
func (XY) WithOptions ¶
func (XY) WithXLabel ¶
func (XY) WithYLabel ¶
type XYRequest ¶
type XYRequest struct { WithTitle WithXLabel WithYLabel WithDataCollection WithOption }
Click to show internal directories.
Click to hide internal directories.