|
Blue Forest http://www.lslnet.com at 8:28 on August 25, 2006
On the curve I wrote pages in the past few days when a problem is the problem of curve
This has never contacted about the procedures so the block
In the hope here that this expert guidance on January 2 in the first Thank you
I write every day 5--6 projects added to the database, the data are digital information
Now the inquiry, according to the date of this 5--6 data from these inquiries, no problem
[B] it was suggested 5--6 is : Can this month according to data produced curve map [/b]
The curves of the past did not know how to start contacts
Want to know what kind of crop
Bow |
Experts who are willing to give pointers about it?
Say something related to the arraignment, or books. . . . . .
Grateful |
Http://www.dev-club.com/club/bbs/elist.asp?boardid=1&path=asp%D3%A6%D3%C3 |
Hello pplove
I thank you for your reply to the message
I read him a similar code
Have also tried dream
After nothing showed ah-importation?
This could explain
If I were to define the function were six
S1 s2. . . . . S6
On the 1st of each variable on the 30th from the 30-day data
The how to write the code?
Asp time to make plans for how to write an 1--30?
Vertical or horizontal markets is the date of s1. . . . . S6
I saw him the code. . . Simply because the code is somewhat puzzled. . . . .
Bow |
Learning about their proposed search will find relevant guidance vml |
[html]<script>
Document.write ( "" html xmlns:v><style>v\\:*{behavior:url (#default#VML) }</style> ")
Var ct1=new impedance ()
Impedance function () (
This.ac= "green, yellow, red, blue and gray." Split ( "")
This.getCss=function (css, k, df) (
If (css==null)
Return def==null? "" : Df
Var r=new RegExp ( "(^|)" +k+ ": ([^\;]*) (\;|$)," "gi")
Var a=r.exec (css.replace (/=/g ":"). Replace (/ per gram, ""). ToLowerCase ())
Return a==null (df==null? "" : Df) : (isNaN (a[2]) ||a[2]== "?" A[2] : parseInt (a[2]))
}
This.bar=function (vList, css) (
Var l = "", a, n, s, hsz, max=0, cx=20, ch
Var pw=this.getCss (css, "width", 500), ph=this.getCss (css, "height", 300)
If (ph<150||pw<150) (
Alert ( "chart too small, interrupting output! ")
Return
}
A=vList.split ( "; ")
For (var i in a) (
A[i]=a[i].split ( "")
For (var in a[i] j) (
If (i>0&&j>0)
If (parseInt (a[i][j]) "max)
Max=parseInt (a[i][j])
}
}
If (max==0)
Return
Hsz= (ph-100) /max
N = (vList.length-vList.replace (/;/g, ""). Replace (/, per gram, ""). Length) *20+20
If (pw<n)
Pw=n
L+= "" id="_x0000_t75" fillcolor= ' "+this.getCss (css," background "and" white ") +"' Historic Significance of the Transitional Budget 'position:absolute;left:0;top:0;width : "+pw+"; height : "+ph+" ' "<v:shadow on=t type=emboss opacity=80% offset=' 3px,3px 'offset2=' 5px,5px '/></v:rect>"
L+= "" 计 莱 "+30+", "+ (ph-30) +" Α "+30+", "+10+" "<v:stroke startarrow=none endarrow=classic /></v:line>"
L+= "" 计 莱 "+30+", "+ (ph-30) +" Α "+ (pw-10) +" "+ (ph-30) +" "<v:stroke startarrow=none endarrow=classic /></v : line> "
L+= "" span Historic Significance of the Transitional Budget 'position:absolute;z-index:3;font:12;left:220;top:10' "" +this.getCss (css, "title") + "" /span> "
L+= "" span Historic Significance of the Transitional Budget 'position:absolute;z-index:3;font:12;left : "+ (pw-50) +" ;top : "+ (ph-20) +"' "" +a[0][0]+ "" /span> "
L+= "" span Historic Significance of the Transitional Budget 'position:absolute;z-index:3;font:12;left:10;top:10;width:5;word-break:break-all' "" +this.getCss (css. "vname") + "" /span> "
For (i=0;i<5;i++) (
L+= "" 计 莱 "+30+", "+ (70+i* (ph-100) /5) +" Α "+ (pw-10) +" "+ (70+i* (ph-100) /5) +" strokecolor=#c0c0c0><v : dashstyle=dash /></v:line> stroke "
L+= "" span Historic Significance of the Transitional Budget 'position:absolute;z-index:3;font:12;left : "+10+" ;top : "+ (65+i* (ph-100) /5) +" ' "" + (parseInt (max) * (5-i) /5) + "" /span> "
}
For (i in a) (
For (j in a[i]) (
If (i==0) (
If (j>0) (
L+= "" id="_x0000_t75" fillcolor= ' "+this.ac[j-1]+"' Historic Significance of the Transitional Budget 'position:absolute;left : "+ (j*80-20) +" ;top:30;width:20;height:20' melodies "
L+= "" span Historic Significance of the Transitional Budget 'position:absolute;z-index:3;font:12;left : "+ (j*80+5) +" ;top:35' "" +a[i][j]+ "" /span> "
}
}
Else{
If (j==0)
L+= "" span Historic Significance of the Transitional Budget 'position:absolute;z-index:3;font:12;left : "+cx+" ;top : "+ (ph-25) +"' "" +a[i][j]+ "" /span> "
Else{
Ch=a[i][j]*hsz
L+= "" id="_x0000_t75" [ ' "+a[i][j]+"' fillcolor= ' "+this.ac[j-1]+"' Historic Significance of the Transitional Budget 'position:absolute;left : "+cx+" ;top : "+ (ph-30-ch) +"; width:20;height : "+ch+" 'melodies "
If (this.getCss (css, "showVal") ====== "t")
L+= "" span Historic Significance of the Transitional Budget 'position:absolute;z-index:3;font:12;left : "+ (cx+3) +" ;top : "+ (ph-42-ch) +"' "" +a[i][j]+ "" /span> "
Cx+=20
}
}
}
Cx+=20
}
Return 1
}
This.lines=function (vList, css) (
Var l = "", a, n, s, hsz, max=0, ch
Var pw=this.getCss (css, "width", 500), ph=this.getCss (css, "height", 300)
If (ph<150||pw<150) (
Alert ( "chart too small, interrupting output! ")
Return
}
A=vList.split ( "; ")
For (var i in a) (
A[i]=a[i].split ( "")
For (var in a[i] j) (
If (i>0&&j>0)
If (parseInt (a[i][j]) "max)
Max=parseInt (a[i][j])
}
}
If (max==0)
Return
Hsz= (ph-100) /max
N=a.length*40+40
If (pw<n)
Pw=n
L+= "" id="_x0000_t75" fillcolor= ' "+this.getCss (css," background "and" white ") +"' Historic Significance of the Transitional Budget 'position:absolute;left:0;top:0;width : "+pw+"; height : "+ph+" ' "<v:shadow on=t type=emboss opacity=80% offset=' 3px,3px 'offset2=' 5px,5px '/></v:rect>"
L+= "" 计 莱 "+30+", "+ (ph-30) +" Α "+30+", "+10+" "<v:stroke startarrow=none endarrow=classic /></v:line>"
L+= "" 计 莱 "+30+", "+ (ph-30) +" Α "+ (pw-10) +" "+ (ph-30) +" "<v:stroke startarrow=none endarrow=classic /></v : line> "
L+= "" span Historic Significance of the Transitional Budget 'position:absolute;z-index:3;font:12;left : "+ (pw-50) +" ;top : "+ (ph-20) +"' "" +this.getCss (css. "xname") + "" /span> "
L+= "" span Historic Significance of the Transitional Budget 'position:absolute;z-index:3;font:12;left:10;top:10;width:5;word-break:break-all' "" +a[0][0]+ "" /span> "
L+= "" span Historic Significance of the Transitional Budget 'position:absolute;z-index:3;font:12;left:220;top:10' "" +this.getCss (css, "title") + "" /span> "
For (i=0;i<5;i++) (
L+= "" 计 莱 "+30+", "+ (70+i* (ph-100) /5) +" Α "+ (pw-10) +" "+ (70+i* (ph-100) /5) +" strokecolor=#c0c0c0><v : dashstyle=dash /></v:line> stroke "
L+= "" span Historic Significance of the Transitional Budget 'position:absolute;z-index:3;font:12;left : "+10+" ;top : "+ (65+i* (ph-100) /5) +" ' "" + (parseInt (max) * (5-i) /5) + "" /span> "
}
For (i in a) (
For (j in a[i]) (
If (i==0) (
If (j>0) (
L+= "" id="_x0000_t75" fillcolor= ' "+this.ac[j-1]+"' Historic Significance of the Transitional Budget 'position:absolute;left : "+ (j*80-20) +" ;top:30;width:20;height:20' melodies "
L+= "" span Historic Significance of the Transitional Budget 'position:absolute;z-index:3;font:12;left : "+ (j*80+5) +" ;top:35' "" +a[i][j]+ "" /span> "
}
}
Else{
If (j==0)
L+= "" span Historic Significance of the Transitional Budget 'position:absolute;z-index:3;font:12;left : "+ (i*40) +" ;top : "+ (ph-25) +"' "" +a[i][j]+ "" /span> "
Else{
Ch=a[i][j]*hsz
If (i>1) (
Oh=parseInt (a[i-1][j]*hsz)
L+= "" 计 莱 "+ ((i-1) *40) +" "+ (ph-oh-30) +" Α "+ (i*40) +" "+ (ph-ch-30) +" stroked="f"> ' "+this.ac[j-1]+"' melodies "
}
L+= "" id="_x0000_t75" [ ' "+a[i][j]+"' fillcolor= ' "+this.ac[j-1]+"' Historic Significance of the Transitional Budget 'z-index:3;position:absolute;left : "+ (i*40-1) +"; top : "+ (ph-ch-31) +" ;width:3;height : "+3+" 'melodies "
If (this.getCss (css, "showVal") ====== "t")
L+= "" span Historic Significance of the Transitional Budget 'position:absolute;z-index:3;font:12;left : "+ (i*40-5) +" ;top : "+ (ph-ch-42) +"' "" +a[i][j]+ "" /span> "
}
}
}
}
Return 1
}
This.pie=function (vList, css) (
Var l = "" a, i, j, n, s, PAMT, dx=0
Var pw=this.getCss (css, "width", 500), ph=this.getCss (css, "height", 300)
If (ph<150||pw<150) (
Alert ( "chart too small, interrupting output! ")
Return
}
A=vList.split ( "; ")
N=a.length*170-130
If (pw<n)
Pw=n
L+= "" id="_x0000_t75" fillcolor= ' "+this.getCss (css," background "and" white ") +"' Historic Significance of the Transitional Budget 'position:absolute;left:0;top:0;width : "+pw+"; height : "+ph+" ' "<v:shadow on=t type=emboss opacity=80% offset=' 3px,3px 'offset2=' 5px,5px '/></v:rect>"
L+= "" span Historic Significance of the Transitional Budget 'position:absolute;z-index:3;font:12;left:220;top:10' "" +this.getCss (css, "title") + "" /span> "
If (a.length==2)
Dx=pw/2-100
If (a.length==3)
Dx=pw/2-180
For (i in a) (
A[i]=a[i].split ( "")
Amt=0
For (j=1;j<a[i].length;j++) (
Amt+=parseFloat (a[i][j])
}
Sa=0
For (j in a[i]) (
If (i==0) (
If (j>0) (
L+= "" id="_x0000_t75" fillcolor= ' "+this.ac[j-1]+"' Historic Significance of the Transitional Budget 'position:absolute;left : "+ (j*80-20) +" ;top:30;width:20;height:20' melodies "
L+= "" span Historic Significance of the Transitional Budget 'position:absolute;z-index:3;font:12;left : "+ (j*80+5) +" ;top:35' "" +a[i][j]+ "" /span> "
}
}
Else{
If (j==0) (
L+= "" span Historic Significance of the Transitional Budget 'position:absolute;z-index:3;font:12;left : "+ (i*170-90+dx) +" ;top : "+ (ph-50) +" ' "" +a[i][j]+ "(" +amt+ ")" /span> "
}
Else{
Ea=a[i][j]*360/amt+sa
If (j==a[i].length-1)
Ea=0
If (a[i][j]>0)
L+=this.getPie (60, sa, ea, "title :" +a[i][j]+ ";val :" + (parseInt ((10000*a[i][j]/amt)) for 100) + "%;x :" + (i*170-70+dx) + "y : "+ (ph/2+10) +" ;background : "+this.ac[j-1])
Sa=ea
}
}
}
}
Return 1
}
This.getPie=function (r, sa, ea, css) (
Var sf, ef, sx, patch, ex, College of
Var title=this.getCss (css, "title"), val=this.getCss (css, "with officers")
Var x=parseInt (this.getCss (css, "x", 0)), y=parseInt (this.getCss (css, "y", 0))
Sf=Math.PI* (sa/180)
Ef=Math.PI* (ea/180)
Sy=parseInt (r*Math.sin (sf))
Sx=parseInt (r*Math.cos (sf))
Ey=parseInt (r*Math.sin (ef))
Ex=parseInt (r*Math.cos (ef))
S = "m0,0l" +sx+ "," +sy+ "ar-" +r+ "-" +r+ "," +r+ "," +r+ "," +ex+ "," +ey+ "," +sx+ "," +sy+ "l0,0xe"
L = "" v:shape path= ' "+s+"' [ ' "+title+"' coordsize=1,1 Historic Significance of the Transitional Budget 'position:absolute;width:1;height:1;left : "+this.getCss (css," x "," 0 ") +" ;top : "+this.getCss (css," y "," 0 ") +" 'fillcolor=' "+this.getCss (css," background " "white") + " 'melodies"
If (ef==0)
Ef=270
Var cx= (r+10) *Math.cos ((sf+ef) /2) cy= (r+10) *Math.sin ((sf+ef) /2)
L+= "" span Historic Significance of the Transitional Budget 'position:absolute;z-index:3;font:12;left : "+ (cx+x-10) +" ;top : "+ (cy+y-5) +"' "" +val+ "" /span> "
Return 1
}
This.draw=function (vList, css) (
Var l, type=this.getCss (css, "type")
If (type== "pie")
L=this.pie (vList, css)
Else if (type== "lines")
L=this.lines (vList, css)
Else
L=this.bar (vList, css)
Return 1
}
}
"/script>
"Html>
"Body style=margin:0>
"Assume id=div1 style=position:absolute;top:0;cursor:default>
"/div>
"Assume id=div2 style=position:absolute;top:300;cursor:default>
"/div>
"Assume id=div3 style=position:absolute;top:600;cursor:default>
"/div>
"/html>
"Script>
//--- Bar
Div1.innerHTML=ct1.draw ( "quarter, and the eastern, central and northern Hanssen quarter 20.4,30.6,90;2 quarter 27.4,38.6,34.6;3 quarter 45.9,0,0", "type:bar;showVal:t;vname : sales; Figures on title : ")
//--- Line graph
Div2.innerHTML=ct1.draw ( "quarter, and the eastern, central and northern Hanssen quarter 20.4,30.6,90;2 quarter 27.4,38.6,34.6;3 quarter 45.9,0,0", "type:lines;showVal:t;vname : sales; Figures on title : ")
//--- Pie-shaped map
Div3.innerHTML=ct1.draw ( "quarter, and the eastern, central and northern Hanssen quarter 20.4,30.6,90;2 quarter 27.4,38.6,34.6;3 quarter 45.9,0,0", "type:pie;showVal:t;vname : sales; Figures on title : ")
"/script>
[/html] |
Thank you, the answer starts bound0
I probably see the code to understand
The definition is in front of the whole chart
The
Div2.innerHTML=ct1.draw ( "quarter, and the eastern, central and northern Hanssen quarter 20.4,30.6,90;2 quarter 27.4,38.6,34.6;3 quarter 45.9,0,0", "type:lines;showVal:t;vname : sales; Figures on title : ")
This is the import of data entry, but if I was doing sgl database, filling in the data, such as variable 1, variable names are one and the only difference is that every day is different variables of different input data. I now suddenly thinking the odds, but this has changed how to bend the following are my ideas, you see my brothers there in the end of the block. . . Help provide some bars :
I installed the variable s1, a day before the date that is imported, it should be from the date of the variable, then the valuation of the two variables, is a date that is a numerical, date bars and Japan should separate inquiries as to build on.
Inquiries statements then, the date of importation, such is September 24, it should only be read in September variables, it should extract variable s1 Lane was nine months of variables, and then variable according to the order of the date of topological structure can be well arranged according to date of the order, but these are represented by variable s1 ah. . . . But their numerical is different. Then again this loop, the variable s1 know how the daily charts for the different variables in accordance with the date? Then variables are defined variables into bar loop?
Every time I think the idea here on confusion. . . . . Oh! |
|