Documentation ¶
Index ¶
- type Axis
- type CustomData
- type CustomInParams
- type CustomState
- type Data
- type DataBuilder
- func (d *DataBuilder) Build() *Data
- func (d *DataBuilder) WithTitle(title string) *DataBuilder
- func (d *DataBuilder) WithXAxis(values ...interface{}) *DataBuilder
- func (d *DataBuilder) WithXOptions(options *Options) *DataBuilder
- func (d *DataBuilder) WithYAxis(dimension string, values ...interface{}) *DataBuilder
- func (d *DataBuilder) WithYOptions(options ...*Options) *DataBuilder
- type ILineGraph
- type ILineGraphStdOps
- type Options
- type OptionsBuilder
- func (o *OptionsBuilder) Build() *Options
- func (o *OptionsBuilder) WithDimension(dimension string) *OptionsBuilder
- func (o *OptionsBuilder) WithEnable(enable bool) *OptionsBuilder
- func (o *OptionsBuilder) WithPrecision(precision structure.Precision) *OptionsBuilder
- func (o *OptionsBuilder) WithType(dataType structure.Type) *OptionsBuilder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Axis ¶
type Axis struct { Dimension string `json:"dimension,omitempty"` // The xAxis can have no dimensions Values []interface{} `json:"values"` }
Axis defined struct.
type CustomData ¶
type CustomData interface { CustomDataPtr() interface{} EncodeFromCustomData(customDataPtr interface{}, stdDataPtr *Data) DecodeToCustomData(stdDataPtr *Data, customDataPtr interface{}) }
CustomData is kv's custom data handler.
type CustomInParams ¶
type CustomInParams interface { CustomInParamsPtr() interface{} EncodeFromCustomInParams(customInParamsPtr interface{}, stdInParamsPtr *cptype.ExtraMap) DecodeToCustomInParams(stdInParamsPtr *cptype.ExtraMap, customInParamsPtr interface{}) }
CustomInParams is kv's custom inParams handler.
type CustomState ¶
type CustomState interface { CustomStatePtr() interface{} EncodeFromCustomState(customStatePtr interface{}, stdStatePtr *cptype.ExtraMap) DecodeToCustomState(stdStatePtr *cptype.ExtraMap, customStatePtr interface{}) }
CustomState is kv's custom state handler.
type Data ¶
type Data struct { Title string `json:"title"` SubTitle string `json:"subTitle"` Dimensions []string `json:"dimensions"` XAxis *Axis `json:"xAxis"` // x axis YAxis []*Axis `json:"yAxis"` // y axis XOptions *Options `json:"xOptions"` YOptions []*Options `json:"yOptions"` Inverse bool `json:"inverse"` // inverted xAxis and yAxis sync.RWMutex }
Data includes list.
type DataBuilder ¶
type DataBuilder struct {
// contains filtered or unexported fields
}
DataBuilder .
func (*DataBuilder) WithTitle ¶
func (d *DataBuilder) WithTitle(title string) *DataBuilder
WithTitle .
func (*DataBuilder) WithXAxis ¶
func (d *DataBuilder) WithXAxis(values ...interface{}) *DataBuilder
WithXAxis .
func (*DataBuilder) WithXOptions ¶
func (d *DataBuilder) WithXOptions(options *Options) *DataBuilder
WithXOptions .
func (*DataBuilder) WithYAxis ¶
func (d *DataBuilder) WithYAxis(dimension string, values ...interface{}) *DataBuilder
WithYAxis .
func (*DataBuilder) WithYOptions ¶
func (d *DataBuilder) WithYOptions(options ...*Options) *DataBuilder
WithYOptions .
type ILineGraph ¶
type ILineGraph interface { cptype.IComponent ILineGraphStdOps }
ILineGraph line graph interface
type Options ¶
type Options struct { Dimension string `json:"dimension,omitempty"` Structure *structure.DataStructure `json:"structure"` Inverse bool `json:"inverse"` // inverted values }
Options .
type OptionsBuilder ¶
type OptionsBuilder struct {
// contains filtered or unexported fields
}
OptionsBuilder .
func (*OptionsBuilder) WithDimension ¶
func (o *OptionsBuilder) WithDimension(dimension string) *OptionsBuilder
WithDimension .
func (*OptionsBuilder) WithEnable ¶
func (o *OptionsBuilder) WithEnable(enable bool) *OptionsBuilder
WithEnable .
func (*OptionsBuilder) WithPrecision ¶
func (o *OptionsBuilder) WithPrecision(precision structure.Precision) *OptionsBuilder
WithPrecision .
func (*OptionsBuilder) WithType ¶
func (o *OptionsBuilder) WithType(dataType structure.Type) *OptionsBuilder
WithType .
Click to show internal directories.
Click to hide internal directories.