svgd

package module
v0.0.0-...-3ef8e73 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2016 License: MIT Imports: 6 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BarCategory

type BarCategory struct {
	Name  string
	Color string
	// contains filtered or unexported fields
}

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

func (d *Diagram) Build(w io.Writer) (err error)

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 PieCategory

type PieCategory struct {
	Name  string
	Color string
	Value float64
	Shift uint
}

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)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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