Documentation ¶
Index ¶
- type Axis
- type Chart
- func (g *Chart) AddCollection(title string, col model.Collection, active bool) canvas.Control
- func (g *Chart) AddPoint(label string, p f32.Point, color color.RGBA, control canvas.Control) uint32
- func (g *Chart) Axis()
- func (g *Chart) AxisX(label string) (*Axis, []*Delimiter)
- func (g *Chart) AxisY(label string) (*Axis, []*Delimiter)
- func (g *Chart) Draw(gtx *layout.Context, th *material.Theme) error
- func (g *Chart) Refresh()
- func (g *Chart) RemoveAxis()
- type Delimiter
- type Point
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Axis ¶
Axis is an axis element for graphs
type Chart ¶
type Chart struct { math.CoordinateMapper canvas.Container // contains filtered or unexported fields }
Chart is a graph object designed to hold all the graph contents as child elements
func (*Chart) AddCollection ¶
AddCollection adds a series model collection to the graph
func (*Chart) AddPoint ¶
func (g *Chart) AddPoint(label string, p f32.Point, color color.RGBA, control canvas.Control) uint32
AddPoint adds a point to the graph
func (*Chart) RemoveAxis ¶
func (g *Chart) RemoveAxis()
type Delimiter ¶
type Delimiter struct { gui.Item canvas.DynamicElement // contains filtered or unexported fields }
Delimiter is an axis child element representing a value on the respective axis
func NewDelimiterX ¶
NewDelimiterX creates a new delimiter for an x axis
func NewDelimiterY ¶
NewDelimiterY creates a new delimiter for an x axis
Click to show internal directories.
Click to hide internal directories.