Documentation ¶
Overview ¶
Package chart makes charts using the gio canvas
Index ¶
- func Grid(canvas *gc.Canvas, left, bottom, width, height, size float64, ...)
- type ChartBox
- func (c *ChartBox) Area(canvas *gc.Canvas, opacity float64)
- func (c *ChartBox) Bar(canvas *gc.Canvas, size float64)
- func (c *ChartBox) CTitle(canvas *gc.Canvas, size, offset float64)
- func (c *ChartBox) Dot(canvas *gc.Canvas, size float64)
- func (c *ChartBox) Frame(canvas *gc.Canvas, op float64)
- func (c *ChartBox) HBar(canvas *gc.Canvas, size, linespacing, textsize float64, ...)
- func (c *ChartBox) Label(canvas *gc.Canvas, size float64, n int, valuefmt, valuecolor string)
- func (c *ChartBox) Lego(canvas *gc.Canvas, size float64)
- func (c *ChartBox) Line(canvas *gc.Canvas, size float64)
- func (c *ChartBox) Pie(canvas *gc.Canvas, r float64)
- func (c *ChartBox) Scatter(canvas *gc.Canvas, size float64)
- func (c *ChartBox) WBar(canvas *gc.Canvas, linespacing, textsize, opacity float64, ...)
- func (c *ChartBox) XAxis(canvas *gc.Canvas, size, min, max, step float64, format string, gridlines bool)
- func (c *ChartBox) YAxis(canvas *gc.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.NRGBA 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
func (*ChartBox) HBar ¶
func (c *ChartBox) HBar(canvas *gc.Canvas, size, linespacing, textsize float64, valuefmt, valuecolor string)
HBar makes a horizontal bar chart
func (*ChartBox) WBar ¶
func (c *ChartBox) WBar(canvas *gc.Canvas, linespacing, textsize, opacity float64, valuefmt, valuecolor string)
WBar makes a word bar chart
Click to show internal directories.
Click to hide internal directories.