chart

package
v0.0.0-...-bf1bca9 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2023 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bar

type Bar struct {
	widget.BaseWidget
	W, H float32

	X  *canvas.Line
	Y  *canvas.Line
	T1 *canvas.Text

	Center   fyne.Position
	ChartCtn *fyne.Container
	// contains filtered or unexported fields
}

Bar is a widget for displaying a separator with themeable color.

Since: 1.4

func NewBar

func NewBar() *Bar

NewBar creates a new separator.

Since: 1.4

func (*Bar) BarColor

func (s *Bar) BarColor(c color.Color) *Bar

func (*Bar) BarWidth

func (s *Bar) BarWidth(w float32) *Bar

func (*Bar) CreateRenderer

func (s *Bar) CreateRenderer() fyne.WidgetRenderer

CreateRenderer returns a new renderer for the separator.

Implements: fyne.Widget

func (*Bar) Data

func (s *Bar) Data(data []float32) *Bar

func (*Bar) Do

func (s *Bar) Do(fn func(*Bar)) *Bar

func (*Bar) MinSize

func (s *Bar) MinSize() fyne.Size

MinSize returns the minimal size of the separator.

Implements: fyne.Widget

func (*Bar) MouseIn

func (s *Bar) MouseIn(*desktop.MouseEvent)

func (*Bar) MouseMoved

func (s *Bar) MouseMoved(e *desktop.MouseEvent)

MouseMoved is called when a desktop pointer hovers over the widget

func (*Bar) MouseOut

func (s *Bar) MouseOut()

MouseOut is called when a desktop pointer exits the widget

func (*Bar) Tapped

func (s *Bar) Tapped(e *fyne.PointEvent)

type Line

type Line struct {
	widget.BaseWidget
	W, H float32

	X  *canvas.Line
	Y  *canvas.Line
	T1 *canvas.Text

	Center   fyne.Position
	ChartCtn *fyne.Container
	// contains filtered or unexported fields
}

Line is a widget for displaying a separator with themeable color.

Since: 1.4

func NewLine

func NewLine(isV bool) *Line

NewLine creates a new separator.

Since: 1.4

func (*Line) CreateRenderer

func (s *Line) CreateRenderer() fyne.WidgetRenderer

CreateRenderer returns a new renderer for the separator.

Implements: fyne.Widget

func (*Line) Data

func (s *Line) Data(data ...float32) *Line

func (*Line) Do

func (s *Line) Do(fn func(*Line)) *Line

func (*Line) LineColor

func (s *Line) LineColor(c color.Color) *Line

func (*Line) LineWidth

func (s *Line) LineWidth(w float32) *Line

func (*Line) MinSize

func (s *Line) MinSize() fyne.Size

MinSize returns the minimal size of the separator.

Implements: fyne.Widget

func (*Line) MouseIn

func (s *Line) MouseIn(*desktop.MouseEvent)

func (*Line) MouseMoved

func (s *Line) MouseMoved(e *desktop.MouseEvent)

MouseMoved is called when a desktop pointer hovers over the widget

func (*Line) MouseOut

func (s *Line) MouseOut()

MouseOut is called when a desktop pointer exits the widget

func (*Line) Tapped

func (s *Line) Tapped(e *fyne.PointEvent)

type PolyLine

type PolyLine struct {
	widget.BaseWidget
	W, H float32

	X  *canvas.Line
	Y  *canvas.Line
	T1 *canvas.Text

	Center   fyne.Position
	ChartCtn *fyne.Container
	// contains filtered or unexported fields
}

PolyLine is a widget for displaying a separator with themeable color.

Since: 1.4

func NewPolyLine

func NewPolyLine() *PolyLine

NewPolyLine creates a new separator.

Since: 1.4

func (*PolyLine) CreateRenderer

func (s *PolyLine) CreateRenderer() fyne.WidgetRenderer

CreateRenderer returns a new renderer for the separator.

Implements: fyne.Widget

func (*PolyLine) Data

func (s *PolyLine) Data(data ...float32) *PolyLine

axis := chart.NewPolyLine().Data([]float32{120, 20, 30, 40, 60, 180, 240})

func (*PolyLine) Do

func (s *PolyLine) Do(fn func(*PolyLine)) *PolyLine

func (*PolyLine) LineColor

func (s *PolyLine) LineColor(c color.Color) *PolyLine

func (*PolyLine) LineWidth

func (s *PolyLine) LineWidth(w float32) *PolyLine

func (*PolyLine) MinSize

func (s *PolyLine) MinSize() fyne.Size

MinSize returns the minimal size of the separator.

Implements: fyne.Widget

func (*PolyLine) MouseIn

func (s *PolyLine) MouseIn(*desktop.MouseEvent)

func (*PolyLine) MouseMoved

func (s *PolyLine) MouseMoved(e *desktop.MouseEvent)

MouseMoved is called when a desktop pointer hovers over the widget

func (*PolyLine) MouseOut

func (s *PolyLine) MouseOut()

MouseOut is called when a desktop pointer exits the widget

func (*PolyLine) Tapped

func (s *PolyLine) Tapped(e *fyne.PointEvent)

type Scatter

type Scatter struct {
	widget.BaseWidget
	W, H float32

	X  *canvas.Line
	Y  *canvas.Line
	T1 *canvas.Text

	Center   fyne.Position
	ChartCtn *fyne.Container
	// contains filtered or unexported fields
}

Scatter is a widget for displaying a separator with themeable color.

Since: 1.4

func NewScatter

func NewScatter() *Scatter

NewScatter creates a new separator.

Since: 1.4

func (*Scatter) CreateRenderer

func (s *Scatter) CreateRenderer() fyne.WidgetRenderer

CreateRenderer returns a new renderer for the separator.

Implements: fyne.Widget

func (*Scatter) Data

func (s *Scatter) Data(data ...float32) *Scatter

func (*Scatter) Do

func (s *Scatter) Do(fn func(*Scatter)) *Scatter

func (*Scatter) MinSize

func (s *Scatter) MinSize() fyne.Size

MinSize returns the minimal size of the separator.

Implements: fyne.Widget

func (*Scatter) MouseIn

func (s *Scatter) MouseIn(*desktop.MouseEvent)

func (*Scatter) MouseMoved

func (s *Scatter) MouseMoved(e *desktop.MouseEvent)

MouseMoved is called when a desktop pointer hovers over the widget

func (*Scatter) MouseOut

func (s *Scatter) MouseOut()

MouseOut is called when a desktop pointer exits the widget

func (*Scatter) ScatterColor

func (s *Scatter) ScatterColor(c color.Color) *Scatter

func (*Scatter) ScatterWidth

func (s *Scatter) ScatterWidth(w float32) *Scatter

func (*Scatter) Tapped

func (s *Scatter) Tapped(e *fyne.PointEvent)

Jump to

Keyboard shortcuts

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