Documentation ¶ Index ¶ func WithCsv(filename string, option *Option) (string, error) func WithItems(items []Item, option *Option) string func WithMap(m map[string]int, option *Option) string func WithMapFloat(m map[string]float64, option *Option) string type Item type Option type Order 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 // 按字段名称降序排序 ) Source Files ¶ View all Source files chartbar.go Click to show internal directories. Click to hide internal directories.