Documentation ¶
Index ¶
- type PNG
- func (png *PNG) Border(x, y, w, h int)
- func (png *PNG) End() error
- func (png *PNG) Graph() error
- func (png *PNG) Legend(base float64)
- func (png *PNG) Line(color string, x1, y1, x2, y2 int)
- func (png *PNG) Start(wr io.Writer, w, h, mx, my int, start, end int64, p *palette.Palette, ...)
- func (png *PNG) Text(col, align string, role myimg.TextRole, x, y int, txt string)
- func (png *PNG) TextID(id, col, align string, role myimg.TextRole, x, y int, txt string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PNG ¶
type PNG struct {
// contains filtered or unexported fields
}
PNG implements the chart interface to write PNG images.
func (*PNG) Start ¶
func (png *PNG) Start(wr io.Writer, w, h, mx, my int, start, end int64, p *palette.Palette, d data.Collection)
Start initializes a new image and sets the defaults.
Click to show internal directories.
Click to hide internal directories.