Documentation
¶
Index ¶
- type BarChart
- func (bc BarChart) GetBarSpacing() int
- func (bc BarChart) GetBarWidth() int
- func (bc BarChart) GetColorPalette() ColorPalette
- func (bc BarChart) GetDPI() float64
- func (bc BarChart) GetFont() *truetype.Font
- func (bc BarChart) GetHeight() int
- func (bc BarChart) GetWidth() int
- func (bc BarChart) Render(rp RendererProvider, w io.Writer) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BarChart ¶
type BarChart struct {
Title string
TitleStyle Style
ColorPalette ColorPalette
Width int
Height int
DPI float64
BarWidth int
Background core.Style
Canvas core.Style
XAxis core.Style
YAxis YAxis
BarSpacing int
UseBaseValue bool
BaseValue float64
Font *truetype.Font
Bars []Value
Elements []Renderable
// contains filtered or unexported fields
}
BarChart is a chart that draws bars on a range.
func (BarChart) GetBarSpacing ¶
GetBarSpacing returns the spacing between bars.
func (BarChart) GetBarWidth ¶
GetBarWidth returns the default bar width.
func (BarChart) GetColorPalette ¶
func (bc BarChart) GetColorPalette() ColorPalette
GetColorPalette returns the color palette for the chart.
Click to show internal directories.
Click to hide internal directories.