Documentation ¶
Overview ¶
Package chart makes charts using the fync canvas package
Index ¶
- func Grid(canvas fc.Canvas, left, bottom, width, height, size float64, color color.RGBA)
- type ChartBox
- func (c *ChartBox) Bar(canvas fc.Canvas, size float64)
- func (c *ChartBox) CTitle(canvas fc.Canvas, size, offset float64)
- func (c *ChartBox) Frame(canvas fc.Canvas, op float64)
- func (c *ChartBox) HBar(canvas fc.Canvas, size, linespacing, textsize float64)
- func (c *ChartBox) Label(canvas fc.Canvas, size float64, n int)
- func (c *ChartBox) Lego(canvas fc.Canvas, step float64)
- func (c *ChartBox) Line(canvas fc.Canvas, size float64)
- func (c *ChartBox) Scatter(canvas fc.Canvas, size float64)
- func (c *ChartBox) YAxis(canvas fc.Canvas, size, min, max, step float64, format string, gridlines bool)
- type NameValue
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ChartBox ¶
type ChartBox struct { Title string Data []NameValue Color color.RGBA Top, Bottom, Left, Right float64 Minvalue, Maxvalue float64 Zerobased bool }
ChartBox holds the essential data for making a chart
func DataRead ¶
DataRead reads tab separated values into a ChartBox default values for the top, bottom, left, right (90,50,10,90) are filled in as is the default color, black
Click to show internal directories.
Click to hide internal directories.