(t *testing.T)
| 88 | } |
| 89 | |
| 90 | func TestLineChart(t *testing.T) { |
| 91 | fmt.Print("Simple chart\n\n") |
| 92 | |
| 93 | chart := NewLineChart(100, 20) |
| 94 | // chart.Flags = /*DRAW_INDEPENDENT // | */// DRAW_RELATIVE |
| 95 | |
| 96 | data := new(DataTable) |
| 97 | data.AddColumn("x") |
| 98 | data.AddColumn("fx1") |
| 99 | data.AddColumn("fx2") |
| 100 | |
| 101 | for i := -5.0; i < 5; i += 0.1 { |
| 102 | data.AddRow(i, 3*math.Sin(i)+3*i+30, i*i+5) |
| 103 | } |
| 104 | |
| 105 | fmt.Println(chart.Draw(data)) |
| 106 | } |
nothing calls this directly
no test coverage detected
searching dependent graphs…