StackOn stacks a bar chart on top of another, and sets the XMin and Offset to that of the chart upon which it is being stacked.
(on *BarChart)
| 90 | // and sets the XMin and Offset to that of the |
| 91 | // chart upon which it is being stacked. |
| 92 | func (b *BarChart) StackOn(on *BarChart) { |
| 93 | b.XMin = on.XMin |
| 94 | b.Offset = on.Offset |
| 95 | b.stackedOn = on |
| 96 | } |
| 97 | |
| 98 | // Plot implements the plot.Plotter interface. |
| 99 | func (b *BarChart) Plot(c draw.Canvas, plt *plot.Plot) { |
no outgoing calls