Documentation ¶
Index ¶
- type Axis
- type AxisBuilder
- func (d *AxisBuilder) Build() *Axis
- func (d *AxisBuilder) WithData(data ...interface{}) *AxisBuilder
- func (d *AxisBuilder) WithDataStructure(typ structure.Type, precision structure.Precision, enable bool) *AxisBuilder
- func (d *AxisBuilder) WithDimensions(dimensions ...string) *AxisBuilder
- func (d *AxisBuilder) WithName(name string) *AxisBuilder
- func (d *AxisBuilder) WithPosition(position Position) *AxisBuilder
- func (d *AxisBuilder) WithType(typ Type) *AxisBuilder
- type CustomData
- type CustomInParams
- type CustomState
- type Data
- type DataBuilder
- func (d *DataBuilder) Build() *Data
- func (d *DataBuilder) EnableInverse() *DataBuilder
- func (d *DataBuilder) WithDimensions(dimensions ...string) *DataBuilder
- func (d *DataBuilder) WithSeries(series ...*Sere) *DataBuilder
- func (d *DataBuilder) WithTitle(title string) *DataBuilder
- func (d *DataBuilder) WithXAxis(xAxis ...*Axis) *DataBuilder
- func (d *DataBuilder) WithYAxis(yAxis ...*Axis) *DataBuilder
- type IComplexGraph
- type IComplexGraphStdOps
- type Position
- type Sere
- type SereBuilder
- type Type
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Axis ¶
type Axis struct { Type Type `json:"type"` Name string `json:"name,omitempty"` Dimensions []string `json:"dimensions,omitempty"` Position Position `json:"position,omitempty"` Data []interface{} `json:"data,omitempty"` DataStructure *structure.DataStructure `json:"structure"` }
Axis .
type AxisBuilder ¶
type AxisBuilder struct {
// contains filtered or unexported fields
}
AxisBuilder .
func (*AxisBuilder) WithData ¶
func (d *AxisBuilder) WithData(data ...interface{}) *AxisBuilder
WithData .
func (*AxisBuilder) WithDataStructure ¶
func (d *AxisBuilder) WithDataStructure(typ structure.Type, precision structure.Precision, enable bool) *AxisBuilder
WithDataStructure .
func (*AxisBuilder) WithDimensions ¶
func (d *AxisBuilder) WithDimensions(dimensions ...string) *AxisBuilder
WithDimensions .
func (*AxisBuilder) WithPosition ¶
func (d *AxisBuilder) WithPosition(position Position) *AxisBuilder
WithPosition .
type CustomData ¶
type CustomData interface { CustomDataPtr() interface{} EncodeFromCustomData(customDataPtr interface{}, stdDataPtr *Data) DecodeToCustomData(stdDataPtr *Data, customDataPtr interface{}) }
CustomData is custom data handler of complex graph.
type CustomInParams ¶
type CustomInParams interface { CustomInParamsPtr() interface{} EncodeFromCustomInParams(customInParamsPtr interface{}, stdInParamsPtr *cptype.ExtraMap) DecodeToCustomInParams(stdInParamsPtr *cptype.ExtraMap, customInParamsPtr interface{}) }
CustomInParams is custom inParams handler of complex graph.
type CustomState ¶
type CustomState interface { CustomStatePtr() interface{} EncodeFromCustomState(customStatePtr interface{}, stdStatePtr *cptype.ExtraMap) DecodeToCustomState(stdStatePtr *cptype.ExtraMap, customStatePtr interface{}) }
CustomState is custom state handler of complex graph.
type Data ¶
type Data struct { Title string `json:"title"` Dimensions []string `json:"dimensions"` XAxis []*Axis `json:"xAxis"` YAxis []*Axis `json:"yAxis"` Series []*Sere `json:"series"` Inverse bool `json:"inverse"` }
Data includes List.
type DataBuilder ¶
type DataBuilder struct {
// contains filtered or unexported fields
}
DataBuilder .
func (*DataBuilder) EnableInverse ¶
func (d *DataBuilder) EnableInverse() *DataBuilder
EnableInverse .
func (*DataBuilder) WithDimensions ¶
func (d *DataBuilder) WithDimensions(dimensions ...string) *DataBuilder
WithDimensions .
func (*DataBuilder) WithSeries ¶
func (d *DataBuilder) WithSeries(series ...*Sere) *DataBuilder
WithSeries .
func (*DataBuilder) WithTitle ¶
func (d *DataBuilder) WithTitle(title string) *DataBuilder
WithTitle .
func (*DataBuilder) WithXAxis ¶
func (d *DataBuilder) WithXAxis(xAxis ...*Axis) *DataBuilder
WithXAxis .
func (*DataBuilder) WithYAxis ¶
func (d *DataBuilder) WithYAxis(yAxis ...*Axis) *DataBuilder
WithYAxis .
type IComplexGraph ¶
type IComplexGraph interface { cptype.IComponent IComplexGraphStdOps }
IComplexGraph complex graph interface
type Sere ¶
type Sere struct { Name string `json:"name"` Dimension string `json:"dimension"` Type Type `json:"type"` Data []interface{} `json:"data"` }
Sere .
type SereBuilder ¶
type SereBuilder struct {
// contains filtered or unexported fields
}
SereBuilder .
func (*SereBuilder) WithData ¶
func (d *SereBuilder) WithData(data ...interface{}) *SereBuilder
WithData .
func (*SereBuilder) WithDimension ¶
func (d *SereBuilder) WithDimension(dimension string) *SereBuilder
WithDimension .
Click to show internal directories.
Click to hide internal directories.