Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrorChart = errors.New("gopster: error creating chart")
ErrorChart is returned when a chart is misconfigured.
View Source
var ErrorItem = errors.New("gopster: chart item is misconfigured")
ErrorItem is returned when a chart item is misconfigured.
Functions ¶
This section is empty.
Types ¶
type Chart ¶
type Chart struct {
// contains filtered or unexported fields
}
Chart is a Topster chart.
type Option ¶
type Option func(*Chart)
Option configures a chart.
func BackgroundColor ¶
BackgroundColor sets a chart's background color. Must be a valid hex color string. Defaults to black.
func ShowNumbers ¶
func ShowNumbers() Option
ShowNumbers toggles number rendering on a chart. Defaults to false. ShowTitles must also be true for this to work.
func ShowTitles ¶
func ShowTitles() Option
ShowTitles toggles title rendering on a chart. Defaults to false.
Click to show internal directories.
Click to hide internal directories.