SetRangeX sets the X scale labels and range per step firstX is the value of first label of the x scale stepX is the step to be added to get the next x scale label countStepX is the number of elements of the data buffer for each line step
(firstX float32, stepX float32, countStepX float32)
| 258 | // stepX is the step to be added to get the next x scale label |
| 259 | // countStepX is the number of elements of the data buffer for each line step |
| 260 | func (ch *Chart) SetRangeX(firstX float32, stepX float32, countStepX float32) { |
| 261 | |
| 262 | ch.firstX = firstX |
| 263 | ch.stepX = stepX |
| 264 | ch.countStepX = countStepX |
| 265 | ch.updateGraphs() |
| 266 | } |
| 267 | |
| 268 | // SetRangeY sets the minimum and maximum values of the y scale |
| 269 | func (ch *Chart) SetRangeY(min float32, max float32) { |
no test coverage detected