chartbar

package
v0.23.0 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithCsv

func WithCsv(filename string, option *Option) (string, error)

func WithItems

func WithItems(items []Item, option *Option) string

func WithMap

func WithMap(m map[string]int, option *Option) string

func WithMapFloat

func WithMapFloat(m map[string]float64, option *Option) string

Types

type Item

type Item struct {
	Name string  // key
	Num  float64 // value
	// contains filtered or unexported fields
}

type Option added in v0.22.0

type Option struct {
	Order Order
}

type Order added in v0.22.0

type Order int
const (
	OrderOrigin    Order = iota + 1 // 原始序
	OrderAscCount                   // 按计数值升序排序
	OrderDescCount                  // 按计数值降序排序
	OrderAscName                    // 按字段名称升序排序
	OrderDescName                   // 按字段名称降序排序
)

Jump to

Keyboard shortcuts

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