MCPcopy Index your code
hub / github.com/g3n/engine / NewChart

Function NewChart

gui/chart.go:59–64  ·  view source on GitHub ↗

NewChart creates and returns a new chart panel with the specified dimensions in pixels.

(width, height float32)

Source from the content-addressed store, hash-verified

57// NewChart creates and returns a new chart panel with
58// the specified dimensions in pixels.
59func NewChart(width, height float32) *Chart {
60
61 ch := new(Chart)
62 ch.Init(width, height)
63 return ch
64}
65
66// Init initializes a new chart with the specified width and height
67// It is normally used to initialize a Chart embedded in a struct

Callers 1

buildChartFunction · 0.85

Calls 1

InitMethod · 0.45

Tested by

no test coverage detected