Documentation ¶
Index ¶
- type SvgGraphics
- func (sg *SvgGraphics) Background() (r, g, b, a uint8)
- func (sg *SvgGraphics) Bars(bars []chart.Barinfo, style chart.Style)
- func (sg *SvgGraphics) Begin()
- func (sg *SvgGraphics) Boxes(boxes []chart.Box, width int, style chart.Style)
- func (sg *SvgGraphics) Dimensions() (int, int)
- func (sg *SvgGraphics) End()
- func (sg *SvgGraphics) FontMetrics(font chart.Font) (fw float32, fh int, mono bool)
- func (sg *SvgGraphics) Key(x, y int, key chart.Key, options chart.PlotOptions)
- func (sg *SvgGraphics) Line(x0, y0, x1, y1 int, style chart.Style)
- func (sg *SvgGraphics) Options() chart.PlotOptions
- func (sg *SvgGraphics) Path(x, y []int, style chart.Style)
- func (sg *SvgGraphics) Rect(x, y, w, h int, style chart.Style)
- func (sg *SvgGraphics) Rings(wedges []chart.Wedgeinfo, x, y, ro, ri int)
- func (sg *SvgGraphics) Scatter(points []chart.EPoint, plotstyle chart.PlotStyle, style chart.Style)
- func (sg *SvgGraphics) Symbol(x, y int, style chart.Style)
- func (sg *SvgGraphics) Text(x, y int, t string, align string, rot int, f chart.Font)
- func (sg *SvgGraphics) TextLen(t string, font chart.Font) int
- func (sg *SvgGraphics) Wedge(x, y, ro, ri int, phi, psi float64, style chart.Style)
- func (sg *SvgGraphics) XAxis(xr chart.Range, ys, yms int, options chart.PlotOptions)
- func (sg *SvgGraphics) YAxis(yr chart.Range, xs, xms int, options chart.PlotOptions)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SvgGraphics ¶
type SvgGraphics struct {
// contains filtered or unexported fields
}
SvgGraphics implements BasicGraphics and uses the generic implementations
func AddTo ¶
func AddTo(sp *svg.SVG, x, y, width, height int, font string, fontsize int, background color.RGBA) *SvgGraphics
AddTo returns a new ImageGraphics which will write to (width x height) sized area starting at (x,y) on the provided SVG
func New ¶
func New(sp *svg.SVG, width, height int, font string, fontsize int, background color.RGBA) *SvgGraphics
New creates a new SvgGraphics of dimension w x h, with a default font font of size fontsize.
func (*SvgGraphics) Background ¶
func (sg *SvgGraphics) Background() (r, g, b, a uint8)
func (*SvgGraphics) Begin ¶
func (sg *SvgGraphics) Begin()
func (*SvgGraphics) Dimensions ¶
func (sg *SvgGraphics) Dimensions() (int, int)
func (*SvgGraphics) End ¶
func (sg *SvgGraphics) End()
func (*SvgGraphics) FontMetrics ¶
func (*SvgGraphics) Key ¶
func (sg *SvgGraphics) Key(x, y int, key chart.Key, options chart.PlotOptions)
func (*SvgGraphics) Options ¶
func (sg *SvgGraphics) Options() chart.PlotOptions
func (*SvgGraphics) Rings ¶
func (sg *SvgGraphics) Rings(wedges []chart.Wedgeinfo, x, y, ro, ri int)
func (*SvgGraphics) Wedge ¶
func (sg *SvgGraphics) Wedge(x, y, ro, ri int, phi, psi float64, style chart.Style)
func (*SvgGraphics) XAxis ¶
func (sg *SvgGraphics) XAxis(xr chart.Range, ys, yms int, options chart.PlotOptions)
func (*SvgGraphics) YAxis ¶
func (sg *SvgGraphics) YAxis(yr chart.Range, xs, xms int, options chart.PlotOptions)
Click to show internal directories.
Click to hide internal directories.