updateGraphs should be called when the range the scales change or any graph data changes
()
| 395 | // updateGraphs should be called when the range the scales change or |
| 396 | // any graph data changes |
| 397 | func (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 |
| 409 | func (ch *Chart) onResize(evname string, ev interface{}) { |
no test coverage detected