simplechart

package module
v0.0.0-...-4a364ab Latest Latest
Warning

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

Go to latest
Published: May 8, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SimpleChart

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

func NewSimpleChart

func NewSimpleChart(width int, fontName string) (*SimpleChart, error)

func (*SimpleChart) BarMap

func (sc *SimpleChart) BarMap(fname string, data map[int]int, date bool) error

func (*SimpleChart) BarSlice

func (sc *SimpleChart) BarSlice(fname string, data []int) error

func (*SimpleChart) Line

func (sc *SimpleChart) Line(fname string, xlabel string, ylabel string, datas [][]XYValue) error

func (*SimpleChart) PieMap

func (sc *SimpleChart) PieMap(fname string, data map[string]int) error

type XYValue

type XYValue struct {
	X, Y float64
}

Jump to

Keyboard shortcuts

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