Documentation
¶
Index ¶
- func SetFont(path string, points float64) error
- type BarChart
- type BaseChart
- func (c *BaseChart) BeginDraw(dc *gg.Context, x, y float64)
- func (l *BaseChart) CreateRenderer() fyne.WidgetRenderer
- func (c *BaseChart) DragEnd()
- func (c *BaseChart) Dragged(event *fyne.DragEvent)
- func (c *BaseChart) DrawCursor(dc *gg.Context, ratioX float64)
- func (c *BaseChart) DrawFrame(dc *gg.Context, ratioX, ratioY, yOffset, height, width, xSpan, ySpan float64)
- func (c *BaseChart) DrawPoint(dc *gg.Context, x, y, yOffset float64, pointCount int, rect image.Rectangle)
- func (c *BaseChart) EndDraw(dc *gg.Context)
- func (c *BaseChart) GetData() ([]float64, []float64)
- func (c *BaseChart) GetGrowY() bool
- func (c *BaseChart) GetMargin() float64
- func (c *BaseChart) GetMouse() (float32, float32)
- func (c *BaseChart) GetScreen() image.Image
- func (c *BaseChart) GetShowLabel() bool
- func (c *BaseChart) ResizeIfNeeded(w, h int)
- func (c *BaseChart) SetData(x, y []float64)
- func (c *BaseChart) SetGrowY(grow bool)
- type Chart
- type ChartRenderer
- type LineChart
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BarChart ¶
type BarChart struct {
BaseChart
}
func NewBarChart ¶
func (*BarChart) CreateRenderer ¶
func (l *BarChart) CreateRenderer() fyne.WidgetRenderer
type BaseChart ¶
type BaseChart struct {
widget.BaseWidget
Screen image.Image
// contains filtered or unexported fields
}
func NewBaseChart ¶
func (*BaseChart) CreateRenderer ¶
func (l *BaseChart) CreateRenderer() fyne.WidgetRenderer
func (*BaseChart) Dragged ¶
Events A minimum implementation is provided so the cursor is is tracked when it's over the chart area
func (*BaseChart) GetShowLabel ¶
func (*BaseChart) ResizeIfNeeded ¶
type Chart ¶
type Chart interface {
fyne.Widget
SetGrowY(grow bool)
SetData(x, y []float64)
BeginDraw(dc *gg.Context, x, y float64)
DrawPoint(dc *gg.Context, x, y, yOffset float64, pointCount int, rect image.Rectangle)
EndDraw(dc *gg.Context)
DrawCursor(dc *gg.Context, ratioX float64)
DrawFrame(dc *gg.Context, ratioX, ratioY, yOffset, height, width, xSpan, ySpan float64)
ResizeIfNeeded(w, h int)
GetData() ([]float64, []float64)
GetScreen() image.Image
GetGrowY() bool
GetMargin() float64
GetMouse() (float32, float32)
GetShowLabel() bool
}
type ChartRenderer ¶
type ChartRenderer struct {
// contains filtered or unexported fields
}
func (*ChartRenderer) Destroy ¶
func (l *ChartRenderer) Destroy()
func (*ChartRenderer) Layout ¶
func (l *ChartRenderer) Layout(size fyne.Size)
func (*ChartRenderer) MinSize ¶
func (l *ChartRenderer) MinSize() fyne.Size
func (*ChartRenderer) Objects ¶
func (l *ChartRenderer) Objects() []fyne.CanvasObject
func (*ChartRenderer) Refresh ¶
func (l *ChartRenderer) Refresh()
type LineChart ¶
type LineChart struct {
BaseChart
}
func NewLineChart ¶
func (*LineChart) CreateRenderer ¶
func (l *LineChart) CreateRenderer() fyne.WidgetRenderer
Click to show internal directories.
Click to hide internal directories.