MCPcopy
hub / github.com/g3n/engine / SetData

Method SetData

gui/chart.go:654–658  ·  view source on GitHub ↗

SetData sets the graph data

(data []float32)

Source from the content-addressed store, hash-verified

652
653// SetData sets the graph data
654func (lg *Graph) SetData(data []float32) {
655
656 lg.data = data
657 lg.updateData()
658}
659
660// SetLineWidth sets the graph line width
661func (lg *Graph) SetLineWidth(width float32) {

Callers 1

newGraphFunction · 0.45

Calls 1

updateDataMethod · 0.95

Tested by

no test coverage detected