public void SetCanvas(int x1, int x2, int y1, int y2)
{
X1 = x1 + this.marginLeft;
X2 = x2 - this.marginRight;
Y1 = y1;
Y2 = y2;
this.width = X2 - X1;
this.height = Y2 - Y1;
if (Axis == null)
Axis = new AxisRight(this.chart, this, x2, y1, y2);
else
Axis.SetBounds(x2, y1, y2);
}