bubblegraph

package
v1.0.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 22, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

README

Bubble Graph Component

Data Struct

Field Description
Title The title of line graph
List Defining multiple lines in a Line Graph
XOptions X-axis property definition
YOptions Y-axis property definition

Bubble Struct

Field Description
X Y-Axis specific data
Y Y-Axis specific data
Size Bubble size
Group Bubble group
Dimension Dimension name

Options Struct

Field Description
Dimension The title of line graph
Structure Data Structure

Demo

Bubble Graph Demo

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Axis

type Axis struct {
	Value interface{} `json:"value"`
	Unit  string      `json:"unit"`
}

Axis .

type Bubble

type Bubble struct {
	X         *Axis       `json:"x"`
	Y         *Axis       `json:"y"`
	Size      *BubbleSize `json:"size"`
	Group     string      `json:"group"`
	Dimension string      `json:"dimension"`
}

Bubble .

type BubbleBuilder

type BubbleBuilder struct {
	// contains filtered or unexported fields
}

BubbleBuilder .

func NewBubbleBuilder

func NewBubbleBuilder() *BubbleBuilder

NewBubbleBuilder .

func (*BubbleBuilder) Build

func (bb *BubbleBuilder) Build() *Bubble

Build .

func (*BubbleBuilder) WithDimension

func (bb *BubbleBuilder) WithDimension(dimension string) *BubbleBuilder

WithDimension .

func (*BubbleBuilder) WithGroup

func (bb *BubbleBuilder) WithGroup(group string) *BubbleBuilder

WithGroup .

func (*BubbleBuilder) WithSize

func (bb *BubbleBuilder) WithSize(size *BubbleSize) *BubbleBuilder

WithSize .

func (*BubbleBuilder) WithValueSize

func (bb *BubbleBuilder) WithValueSize(v float64) *BubbleBuilder

WithValueSize .

func (*BubbleBuilder) WithValueX

func (bb *BubbleBuilder) WithValueX(v interface{}) *BubbleBuilder

WithValueX .

func (*BubbleBuilder) WithValueY

func (bb *BubbleBuilder) WithValueY(v interface{}) *BubbleBuilder

WithValueY .

func (*BubbleBuilder) WithX

func (bb *BubbleBuilder) WithX(x *Axis) *BubbleBuilder

WithX .

func (*BubbleBuilder) WithY

func (bb *BubbleBuilder) WithY(y *Axis) *BubbleBuilder

WithY .

type BubbleSize

type BubbleSize struct {
	Value     float64                  `json:"value"`
	Structure *structure.DataStructure `json:"structure"`
}

BubbleSize .

type CustomData

type CustomData interface {
	CustomDataPtr() interface{}
	EncodeFromCustomData(customDataPtr interface{}, stdDataPtr *Data)
	DecodeToCustomData(stdDataPtr *Data, customDataPtr interface{})
}

CustomData is custom data handler of bubble 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 bubble 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 bubble graph.

type Data

type Data struct {
	Title    string     `json:"title"`
	List     []*Bubble  `json:"list"`
	XOptions *Options   `json:"xOptions"`
	YOptions []*Options `json:"yOptions"`
}

Data includes List.

type DataBuilder

type DataBuilder struct {
	// contains filtered or unexported fields
}

DataBuilder .

func NewDataBuilder

func NewDataBuilder() *DataBuilder

NewDataBuilder .

func (*DataBuilder) Build

func (d *DataBuilder) Build() *Data

Build .

func (*DataBuilder) WithBubble

func (d *DataBuilder) WithBubble(bubbles ...*Bubble) *DataBuilder

WithBubble .

func (*DataBuilder) WithTitle

func (d *DataBuilder) WithTitle(title string) *DataBuilder

WithTitle .

func (*DataBuilder) WithXOptions

func (d *DataBuilder) WithXOptions(options *Options) *DataBuilder

WithXOptions .

func (*DataBuilder) WithYOptions

func (d *DataBuilder) WithYOptions(options ...*Options) *DataBuilder

WithYOptions .

type IBubbleGraph

type IBubbleGraph interface {
	cptype.IComponent
	IBubbleGraphStdOps
}

IBubbleGraph bubble graph interface

type IBubbleGraphStdOps

type IBubbleGraphStdOps interface{}

IBubbleGraphStdOps .

type Options

type Options struct {
	Dimension string                   `json:"dimension,omitempty"`
	Structure *structure.DataStructure `json:"structure"`
}

Options .

type OptionsBuilder

type OptionsBuilder struct {
	// contains filtered or unexported fields
}

OptionsBuilder .

func NewOptionsBuilder

func NewOptionsBuilder() *OptionsBuilder

NewOptionsBuilder .

func (*OptionsBuilder) Build

func (o *OptionsBuilder) Build() *Options

Build .

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 .

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL