chartbuilders

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FixEmptyWord

func FixEmptyWord(em string) string

func GetHorizontalPostProcessor

func GetHorizontalPostProcessor() func(result *Result) error

func GetStackBarSingleSeriesConverter

func GetStackBarSingleSeriesConverter() func(name string, data []*int) charts.SingleSeries

func GetVerticalBarPostProcessor

func GetVerticalBarPostProcessor() func(result *Result) error

Types

type BarBuilder

type BarBuilder struct {
	Items        []interface{}
	StackHandler stackhandlers.StackHandler
	FixedXAxisOrTop
	YAxisOpt
	StackOpt
	DataHandleOpt
	Result
}

func (*BarBuilder) Generate

func (f *BarBuilder) Generate() error

type DataHandleOpt

type DataHandleOpt struct {
	SeriesConverter func(name string, data []*int) charts.SingleSeries
	DataWhiteList   []string
	FillZero        bool
	StatsProperty   func(interface{}) int
}

type FixedXAxisOrTop

type FixedXAxisOrTop struct {
	XAxis    []string
	Top      int
	XIndexer func(interface{}) string

	MaxValue          int
	XDisplayConverter func(opt *FixedXAxisOrTop) opts.XAxis
}

type Result

type Result struct {
	Bar           *charts.Bar
	Bb            interface{}
	Size          int
	PostProcessor func(*Result) error
}

type StackOpt

type StackOpt struct {
	EnableSum bool
	SkipEmpty bool
}

type YAxisOpt

type YAxisOpt struct {
	YAxis             []string
	YDisplayConverter func(opt *YAxisOpt) opts.YAxis
}

Jump to

Keyboard shortcuts

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