Documentation ¶ Index ¶ Constants func WithCsv(filename string) (string, error) func WithItems(items []Item) (string, error) func WithMap(m map[string]int) (string, error) func WithMapFloat(m map[string]float64) (string, error) type Item Constants ¶ View Source const ( OrderOrigin = iota + 1 // 原始序 OrderAsc // 升序 OrderDesc // 降序 ) Variables ¶ This section is empty. Functions ¶ func WithCsv ¶ func WithCsv(filename string) (string, error) func WithItems ¶ func WithItems(items []Item) (string, error) func WithMap ¶ func WithMap(m map[string]int) (string, error) func WithMapFloat ¶ func WithMapFloat(m map[string]float64) (string, error) Types ¶ type Item ¶ type Item struct { Name string // key Num float64 // value // contains filtered or unexported fields } Source Files ¶ View all Source files chartbar.go Click to show internal directories. Click to hide internal directories.