NewChart creates and returns a new chart panel with the specified dimensions in pixels.
(width, height float32)
| 57 | // NewChart creates and returns a new chart panel with |
| 58 | // the specified dimensions in pixels. |
| 59 | func NewChart(width, height float32) *Chart { |
| 60 | |
| 61 | ch := new(Chart) |
| 62 | ch.Init(width, height) |
| 63 | return ch |
| 64 | } |
| 65 | |
| 66 | // Init initializes a new chart with the specified width and height |
| 67 | // It is normally used to initialize a Chart embedded in a struct |