chartbuilders

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2021 License: Apache-2.0 Imports: 6 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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
}

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