charts

package
v0.0.0-...-d4285bb Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2014 License: BSD-2-Clause Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	NoFilesError       = errors.New("no files to load chart for")
	NoSubmissionsError = errors.New("no submissions to create chart for")
	NoValuesError      = errors.New("no values found")
)

Functions

This section is empty.

Types

type C

type C struct {
	Data D
	// contains filtered or unexported fields
}

Chart represents the x and y values used to draw the charts.

func New

func New(s *project.Submission, result *context.Result) *C

New initialises new chart data.

func (*C) Add

func (c *C) Add(t int64, vs []*result.ChartVal)

Add inserts new coordinates into data used to display a chart.

func (*C) Key

func (c *C) Key(n string) string

func (*C) Len

func (c *C) Len() int

func (*C) Less

func (c *C) Less(i, j int) bool

func (*C) Swap

func (c *C) Swap(i, j int)

type D

type D []map[string]interface{}

func NewData

func NewData() D

func Project

func Project() (D, error)

func Submission

func Submission(subs []*project.Submission, r *context.Result, score string) (D, error)

func Tool

func Tool(r *context.Result, files []*project.File) (D, error)

func User

func User() (D, error)

Jump to

Keyboard shortcuts

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