charts

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

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

Go to latest
Published: Jan 10, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// BarWidth is the width of the chart bars
	BarWidth = 50
	// SepWidth is the width of the seperator between the chart bars
	SepWidth = 10
	// BarHeightCoeff is the coefficient to use to multiply the chart bar heights
	BarHeightCoeff = 2
)

Variables

This section is empty.

Functions

func Draw

func Draw(drawer Drawer, filename string, data []int) error

Draw charts using standard image package

Types

type Drawer

type Drawer interface {
	Draw(w, h int, data []int) image.Image
}

Drawer draws the charts using different techniques

Jump to

Keyboard shortcuts

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