(width, height int)
| 70 | } |
| 71 | |
| 72 | func NewLineChart(width, height int) *LineChart { |
| 73 | chart := new(LineChart) |
| 74 | chart.Width = width |
| 75 | chart.Height = height |
| 76 | chart.Buf = genBuf(width * height) |
| 77 | |
| 78 | // axis lines + axies text |
| 79 | chart.paddingY = 2 |
| 80 | |
| 81 | return chart |
| 82 | } |
| 83 | |
| 84 | func (c *LineChart) DrawAxes(maxX, minX, maxY, minY float64, index int) { |
| 85 | side := AXIS_LEFT |
searching dependent graphs…