README ¶ barchart/demo package main import ( "github.com/pterm/pterm" ) func main() { positiveBars := pterm.Bars{ pterm.Bar{ Label: "Bar 1", Value: 5, }, pterm.Bar{ Label: "Bar 2", Value: 3, }, pterm.Bar{ Label: "Longer Label", Value: 7, }, } pterm.Info.Println("Chart example with positive only values (bars use 100% of chart area)") _ = pterm.DefaultBarChart.WithBars(positiveBars).Render() _ = pterm.DefaultBarChart.WithHorizontal().WithBars(positiveBars).Render() } Expand ▾ Collapse ▴ Documentation ¶ There is no documentation for this package. Source Files ¶ View all Source files main.go Click to show internal directories. Click to hide internal directories.