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

Method SetRangeYauto

gui/chart.go:280–287  ·  view source on GitHub ↗

SetRangeYauto sets the state of the auto

(auto bool)

Source from the content-addressed store, hash-verified

278
279// SetRangeYauto sets the state of the auto
280func (ch *Chart) SetRangeYauto(auto bool) {
281
282 ch.autoY = auto
283 if !auto {
284 return
285 }
286 ch.updateGraphs()
287}
288
289// RangeY returns the current y range
290func (ch *Chart) RangeY() (minY, maxY float32) {

Callers 1

buildChartFunction · 0.95

Calls 1

updateGraphsMethod · 0.95

Tested by

no test coverage detected