svgg

package
v0.0.0-...-293b01f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 14, 2015 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

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) Bars

func (sg *SvgGraphics) Bars(bars []chart.Barinfo, style chart.Style)

func (*SvgGraphics) Begin

func (sg *SvgGraphics) Begin()

func (*SvgGraphics) Boxes

func (sg *SvgGraphics) Boxes(boxes []chart.Box, width int, style chart.Style)

func (*SvgGraphics) Dimensions

func (sg *SvgGraphics) Dimensions() (int, int)

func (*SvgGraphics) End

func (sg *SvgGraphics) End()

func (*SvgGraphics) FontMetrics

func (sg *SvgGraphics) FontMetrics(font chart.Font) (fw float32, fh int, mono bool)

func (*SvgGraphics) Key

func (sg *SvgGraphics) Key(x, y int, key chart.Key, options chart.PlotOptions)

func (*SvgGraphics) Line

func (sg *SvgGraphics) Line(x0, y0, x1, y1 int, style chart.Style)

func (*SvgGraphics) Options

func (sg *SvgGraphics) Options() chart.PlotOptions

func (*SvgGraphics) Path

func (sg *SvgGraphics) Path(x, y []int, style chart.Style)

func (*SvgGraphics) Rect

func (sg *SvgGraphics) Rect(x, y, w, h int, style chart.Style)

func (*SvgGraphics) Rings

func (sg *SvgGraphics) Rings(wedges []chart.Wedgeinfo, x, y, ro, ri int)

func (*SvgGraphics) Scatter

func (sg *SvgGraphics) Scatter(points []chart.EPoint, plotstyle chart.PlotStyle, style chart.Style)

func (*SvgGraphics) Symbol

func (sg *SvgGraphics) Symbol(x, y int, style chart.Style)

func (*SvgGraphics) Text

func (sg *SvgGraphics) Text(x, y int, t string, align string, rot int, f chart.Font)

func (*SvgGraphics) TextLen

func (sg *SvgGraphics) TextLen(t string, font chart.Font) 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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL