Documentation
¶
Index ¶
- Constants
- type AxesStruct
- type DataStruct
- type DataValue
- type LegentConf
- type LineConf
- type LineStyle
- type MultiSeriesLineGraph
- func (g *MultiSeriesLineGraph[X, Y]) AddData(x X, y Y, seriesField string) *MultiSeriesLineGraph[X, Y]
- func (g *MultiSeriesLineGraph[X, Y]) SetRange(min, max Y) *MultiSeriesLineGraph[X, Y]
- func (g *MultiSeriesLineGraph[X, Y]) SetStack() *MultiSeriesLineGraph[X, Y]
- func (g *MultiSeriesLineGraph[X, Y]) SetTitle(title string) *MultiSeriesLineGraph[X, Y]
- func (g *MultiSeriesLineGraph[X, Y]) String() string
- type Numeric
- type PagerStruct
- type PointConf
- type PointStyle
Constants ¶
View Source
const ( SeriesField = "seriesField" XField = "xField" YField = "yField" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AxesStruct ¶
type DataStruct ¶
type LegentConf ¶
type LegentConf struct { Type string `json:"type"` Visible bool `json:"visible"` Orient string `json:"orient"` Pager *PagerStruct `json:"pager"` }
type MultiSeriesLineGraph ¶
type MultiSeriesLineGraph[X, Y Numeric] struct { Type string `json:"type"` Title struct { Text string `json:"text"` } `json:"title"` Point *PointConf `json:"point"` Line *LineConf `json:"line"` Legends *LegentConf `json:"legends"` Data *DataStruct[X, Y] `json:"data"` XField string `json:"xField"` YField string `json:"yField"` SeriesField string `json:"seriesField"` InvalidType string `json:"invalidType"` Axes []*AxesStruct[Y] `json:"axes"` Stack bool `json:"stack"` }
func NewMultiSeriesLineGraph ¶
func NewMultiSeriesLineGraph[X, Y Numeric]() *MultiSeriesLineGraph[X, Y]
func (*MultiSeriesLineGraph[X, Y]) AddData ¶
func (g *MultiSeriesLineGraph[X, Y]) AddData(x X, y Y, seriesField string) *MultiSeriesLineGraph[X, Y]
func (*MultiSeriesLineGraph[X, Y]) SetRange ¶
func (g *MultiSeriesLineGraph[X, Y]) SetRange(min, max Y) *MultiSeriesLineGraph[X, Y]
func (*MultiSeriesLineGraph[X, Y]) SetStack ¶
func (g *MultiSeriesLineGraph[X, Y]) SetStack() *MultiSeriesLineGraph[X, Y]
func (*MultiSeriesLineGraph[X, Y]) SetTitle ¶
func (g *MultiSeriesLineGraph[X, Y]) SetTitle(title string) *MultiSeriesLineGraph[X, Y]
func (*MultiSeriesLineGraph[X, Y]) String ¶
func (g *MultiSeriesLineGraph[X, Y]) String() string
type Numeric ¶
type Numeric interface { constraints.Integer | constraints.Float | string }
type PagerStruct ¶
type PagerStruct struct {
Type string `json:"type"`
}
type PointConf ¶
type PointConf struct {
Style *PointStyle `json:"style"`
}
type PointStyle ¶
type PointStyle struct {
Size int `json:"size"`
}
Click to show internal directories.
Click to hide internal directories.