cmd

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2019 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Version = "dev"

Functions

func Execute

func Execute()

Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

Types

type Axis

type Axis struct {
	Label    string   `json:"label"`
	Min      *float64 `json:"min"`
	Max      *float64 `json:"max"`
	Time     bool     `json:"time"`
	TimeZone string   `json:"time_zone"`
}

type Band

type Band struct {
	Title string  `json:"title"`
	Start float64 `json:"start"`
	End   float64 `json:"end"`
	Color Color   `json:"color"`
}

func (*Band) Plot

func (b *Band) Plot(c draw.Canvas, plt *plot.Plot)

type Color

type Color string

func (Color) RGBA

func (c Color) RGBA() (r, g, b, a uint32)

type Options

type Options struct {
	Title  string    `json:"title"`
	XAxis  Axis      `json:"x_axis"`
	YAxis  Axis      `json:"y_axis"`
	Height string    `json:"height"`
	Width  string    `json:"width"`
	Data   []*Series `json:"data"`
	Bands  []*Band   `json:"bands"`
}

type Point

type Point struct {
	X float64  `json:"x"`
	Y *float64 `json:"y"`
}

type Series

type Series struct {
	Points           []Point `json:"points"`
	Color            Color   `json:"color"`
	HidePointMarkers bool    `json:"hide_point_markers"`
}

func (*Series) Len

func (s *Series) Len() int

func (*Series) XY

func (s *Series) XY(i int) (x, y float64)

Jump to

Keyboard shortcuts

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