(t *testing.T)
| 68 | } |
| 69 | |
| 70 | func TestLineChartRelative(t *testing.T) { |
| 71 | fmt.Print("Relative chart\n\n") |
| 72 | |
| 73 | chart := NewLineChart(100, 20) |
| 74 | chart.Flags = DRAW_RELATIVE |
| 75 | |
| 76 | data := new(DataTable) |
| 77 | data.AddColumn("X") |
| 78 | data.AddColumn("Sin(x)") |
| 79 | data.AddColumn("Cos(x+1)") |
| 80 | |
| 81 | // data.AddColumn("x*x") |
| 82 | |
| 83 | for i := 0.1; i < 10; i += 0.1 { |
| 84 | data.AddRow(i, math.Sin(i), math.Cos(i+1)) |
| 85 | } |
| 86 | |
| 87 | fmt.Println(chart.Draw(data)) |
| 88 | } |
| 89 | |
| 90 | func TestLineChart(t *testing.T) { |
| 91 | fmt.Print("Simple chart\n\n") |
nothing calls this directly
no test coverage detected
searching dependent graphs…