2
< html xmlns ="http://www.w3.org/1999/xhtml" > 3
< head > 4
< meta http-equiv ="Content-Type" content ="text/html; charset=utf-8" /> 5
< title > TEST title > 6
< script type ="text/javascript" src ="wz_jsgraphics.js" > script > 7
< script type ="text/javascript" src ="line.js" > script > 8
head > 9
< body > 10
< p > 1.线图 p > 11
< div id ="LineDiv" style ="position:relative;height:200px;width:300px;" > div > 12
< script language ="javascript" >
13
var y = new Array ();14
y[ 0 ] = 16000 ;15
y[ 1 ] = 1000 ;16
y[ 2 ] = 20000 ;17
y[ 3 ] = 100 ;18
y[ 4 ] = - 500 ;19
y[ 5 ] = 9000 ;20
var x = new Array ();21
x[ 0 ] = " a " ;22
x[ 1 ] = " b " ;23
x[ 2 ] = " c " ;24
x[ 3 ] = " aa " ;25
x[ 4 ] = " bb " ;26
x[ 5 ] = " dd " ;27
var myline = new Line( " LineDiv " );28
myline.drawXYLine(y,x);29
// myline.clearLine(); 30
script > 31
body > 32
html >
效果图:
1
/**/ /* ************更多技术文章请访问:http://www.blogjava.net/JAVA-HE****************2
*3