chart

package
v1.11.0 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Examples

Constants

This section is empty.

Variables

This section is empty.

Functions

func Chart

func Chart(title string, sections, fields []string, abs map[string]bool, frequencies map[string]map[string]int) string
Example
fmt.Print(Chart("Census",
	[]string{"1950", "1951", "1952"},
	[]string{"deaths", "births", "marriages"},
	map[string]bool{},
	map[string]map[string]int{"1950": {"births": 11, "deaths": 49}, "1951": {"deaths": 200, "births": 9}},
))
Output:

CENSUS
1950
deaths:    ■ ■ (49)
births:    ■ (11)

1951
deaths:    ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ (200)
births:    ■ (9)

Types

This section is empty.

Jump to

Keyboard shortcuts

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