SetRangeYauto sets the state of the auto
(auto bool)
| 278 | |
| 279 | // SetRangeYauto sets the state of the auto |
| 280 | func (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 |
| 290 | func (ch *Chart) RangeY() (minY, maxY float32) { |
no test coverage detected