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

Method updateGraphs

gui/chart.go:397–406  ·  view source on GitHub ↗

updateGraphs should be called when the range the scales change or any graph data changes

()

Source from the content-addressed store, hash-verified

395// updateGraphs should be called when the range the scales change or
396// any graph data changes
397func (ch *Chart) updateGraphs() {
398
399 ch.calcRangeY()
400 ch.updateLabelsX()
401 ch.updateLabelsY()
402 for i := 0; i < len(ch.graphs); i++ {
403 g := ch.graphs[i]
404 g.updateData()
405 }
406}
407
408// onResize process OnResize events for this chart
409func (ch *Chart) onResize(evname string, ev interface{}) {

Callers 5

SetRangeXMethod · 0.95
SetRangeYMethod · 0.95
SetRangeYautoMethod · 0.95
AddLineGraphMethod · 0.95
RemoveGraphMethod · 0.95

Calls 4

calcRangeYMethod · 0.95
updateLabelsXMethod · 0.95
updateLabelsYMethod · 0.95
updateDataMethod · 0.80

Tested by

no test coverage detected