DataTable can contain data for multiple graphs, we need to extract only 1
(data *DataTable, index int)
| 279 | |
| 280 | // DataTable can contain data for multiple graphs, we need to extract only 1 |
| 281 | func getChartData(data *DataTable, index int) (out [][]float64) { |
| 282 | for _, r := range data.rows { |
| 283 | out = append(out, []float64{r[0], r[index]}) |
| 284 | } |
| 285 | |
| 286 | return |
| 287 | } |
| 288 | |
| 289 | // Algorithm for drawing line between two points |
| 290 | // |
no outgoing calls
no test coverage detected
searching dependent graphs…