Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BarCategory ¶
func (*BarCategory) SetValues ¶
func (lc *BarCategory) SetValues(vals []float64)
type BarDiagram ¶
type BarDiagram struct {
Title string
Width uint
Height uint
Grid bool
ShowValues bool
MinValue float64
MaxValue float64
Step float64
// contains filtered or unexported fields
}
func (*BarDiagram) NewCategory ¶
func (d *BarDiagram) NewCategory(name string) (cat *BarCategory)
func (*BarDiagram) SetLabels ¶
func (d *BarDiagram) SetLabels(labels []string)
type Diagram ¶
type Diagram struct {
// contains filtered or unexported fields
}
func NewDiagram ¶
func NewDiagram() *Diagram
func (*Diagram) CreateBar ¶
func (d *Diagram) CreateBar() (dg *BarDiagram)
func (*Diagram) CreateLinear ¶
func (d *Diagram) CreateLinear() (dg *LinearDiagram)
func (*Diagram) CreatePie ¶
func (d *Diagram) CreatePie() (dg *PieDiagram)
type LinearCategory ¶
type LinearCategory struct {
Name string
Color string
LineWidth int
// contains filtered or unexported fields
}
func (*LinearCategory) SetValues ¶
func (lc *LinearCategory) SetValues(vals []float64)
type LinearDiagram ¶
type LinearDiagram struct {
Title string
Width uint
Height uint
Grid bool
MinValue float64
MaxValue float64
Step float64
// contains filtered or unexported fields
}
func (*LinearDiagram) NewCategory ¶
func (d *LinearDiagram) NewCategory(name string) (cat *LinearCategory)
func (*LinearDiagram) SetLabels ¶
func (d *LinearDiagram) SetLabels(labels []string)
type PieDiagram ¶
type PieDiagram struct {
Title string
Width uint
Height uint
ShowValues bool
ValuesShift uint
LegendMarginTop uint
Radius uint
// contains filtered or unexported fields
}
func (*PieDiagram) NewCategory ¶
func (d *PieDiagram) NewCategory(name string) (cat *PieCategory)
Click to show internal directories.
Click to hide internal directories.