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

Method SetRangeY

gui/chart.go:269–277  ·  view source on GitHub ↗

SetRangeY sets the minimum and maximum values of the y scale

(min float32, max float32)

Source from the content-addressed store, hash-verified

267
268// SetRangeY sets the minimum and maximum values of the y scale
269func (ch *Chart) SetRangeY(min float32, max float32) {
270
271 if ch.autoY {
272 return
273 }
274 ch.minY = min
275 ch.maxY = max
276 ch.updateGraphs()
277}
278
279// SetRangeYauto sets the state of the auto
280func (ch *Chart) SetRangeYauto(auto bool) {

Callers 1

buildChartFunction · 0.95

Calls 1

updateGraphsMethod · 0.95

Tested by

no test coverage detected