graph

package
v0.0.0-...-4d50982 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2016 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const Time_YMDHIS = "2006-01-02T15:04:05"

Variables

This section is empty.

Functions

This section is empty.

Types

type Bar

type Bar struct {
	Colors []string
	// contains filtered or unexported fields
}

func NewBarGraph

func NewBarGraph(h int, w int, vs []float64, ls []string) *Bar

func (*Bar) Height

func (b *Bar) Height() int

func (*Bar) Values

func (b *Bar) Values() []*Value

func (*Bar) Width

func (b *Bar) Width() int

type BarService

type BarService struct {
}

func (*BarService) Build

func (s *BarService) Build(b *Bar, w io.Writer)

type Line

type Line struct {
	// contains filtered or unexported fields
}

func NewLineGraph

func NewLineGraph(h int, w int, vsx []float64, vsy []float64, ls []string) *Line

func (*Line) Height

func (p *Line) Height() int

func (*Line) Values

func (p *Line) Values() []*Value

func (*Line) Width

func (p *Line) Width() int

type LineService

type LineService struct {
}

func (*LineService) Build

func (s *LineService) Build(p *Line, w io.Writer)

type Pie

type Pie struct {
	Colors []string
	// contains filtered or unexported fields
}

func NewPieGraph

func NewPieGraph(h int, w int, vs []float64, ls []string) *Pie

func (*Pie) Height

func (p *Pie) Height() int

func (*Pie) Values

func (p *Pie) Values() []*Value

func (*Pie) Width

func (p *Pie) Width() int

type PieService

type PieService struct {
}

func (*PieService) Build

func (s *PieService) Build(p *Pie, w io.Writer)

type TimeSeries

type TimeSeries struct {
	// contains filtered or unexported fields
}

func NewTimeSeriesGraph

func NewTimeSeriesGraph(h int, w int, vs []float64, ls []string) *TimeSeries

func (*TimeSeries) Height

func (p *TimeSeries) Height() int

func (*TimeSeries) Values

func (p *TimeSeries) Values() []*Value

func (*TimeSeries) Width

func (p *TimeSeries) Width() int

type TimeSeriesService

type TimeSeriesService struct {
}

func (*TimeSeriesService) Build

func (s *TimeSeriesService) Build(p *TimeSeries, w io.Writer)

type Value

type Value struct {
	Value float64
	Label string
}

Jump to

Keyboard shortcuts

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