AddLineGraph adds a line graph to the chart
(color *math32.Color, data []float32)
| 294 | |
| 295 | // AddLineGraph adds a line graph to the chart |
| 296 | func (ch *Chart) AddLineGraph(color *math32.Color, data []float32) *Graph { |
| 297 | |
| 298 | graph := newGraph(ch, color, data) |
| 299 | ch.graphs = append(ch.graphs, graph) |
| 300 | ch.Add(graph) |
| 301 | ch.recalc() |
| 302 | ch.updateGraphs() |
| 303 | return graph |
| 304 | } |
| 305 | |
| 306 | // RemoveGraph removes and disposes of the specified graph from the chart |
| 307 | func (ch *Chart) RemoveGraph(g *Graph) { |
nothing calls this directly
no test coverage detected