This diagram was generated by
<SCRIPT Language="JavaScript">
document.open();
var D=new Diagram();
D.SetFrame(80, 160, 520, 360);
D.SetBorder(Date.UTC(2000,11,15,0,0,0), Date.UTC(2001,11,15,0,0,0), -300, 1100);
D.SetText("","", "profit/loss per day during the last year");
D.XScale=4;
D.YScale=" $";
D.Draw("#FFFFCC", "#000000", false);
var i, t0, t1, P0, P1, base=D.ScreenY(0);
t1=D.ScreenX(Date.UTC(2000,11,15,0,0,0));
P1=0;
for (i=0; i<12; i++)
{ t0=t1; P0=P1;
t1=D.ScreenX(Date.UTC(2001,i,15,0,0,0));
P1+=(i/5-Math.random())*100;
new Area(t0, D.ScreenY(P0), t1, D.ScreenY(P1), "ff0000", base, "profit/loss per day");
}
document.close();
</SCRIPT>
You can use the following methods:
- var A = new Area(theX0, theY0, theX1, theY1, theColor, theBase[, theTooltipText[,
theOnClickAction[, theOnMouseoverAction[, theOnMouseoutAction]]]])
//Constructor and Display, requires images o_*, d_*, p_* q_* and b_* (*=theColor+".gif")
- A.SetColor(theColor) //Color
- A.SetVisibility(isVisible) //Show or Hide
- A.SetTitle(theTitle) //TooltipText
- A.MoveTo(theLeft, theTop) //Move
- A.ResizeTo(theX0, theY0, theX1, theY1) //Resize
- A.Delete() //Delete DIV object of A from the document
- delete A //Destructor