• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to write chart application using netcharts.server.api ?

 
sridhar bvap
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi to all.

i need to write a chart application in Java which makes use of netcharts.server.api.

Iam having netcharts.jar, chartworks.jar, commons-httpclient.jar, commons-logging.jar, ncstoolkit.jar in my hand.

I need to make use of above jars only to build line graph or charts or any thing.

That application has to work in html or jsp.

can any buddy please help me in this regard.

iam very much thank full for any reply.

please help me.


thanks in advance

 
sridhar bvap
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
<html>
<head>
<script>
function defaultFun(){
var tab='<table border=\'1\'>';
for(var i=0;i<4;i++){
tab = tab+'<tr>';
tab = tab+'<td><input type=\'text\' name=cust:'+i+' style=\'text-align:right;\' onclick=\'myfun(this)\' value=\'1234\' size=\'9

\'></td>';
tab = tab+'<td><input type=\'text\' name=lust:'+i+' style=\'text-align:right;\' onclick=\'myfun(this)\' value=\'3445\' size=\'9

\'></td>';
tab = tab+'<td><input type=\'text\' name=pust:'+i+' style=\'text-align:right;\' onclick=\'myfun(this)\' value=\'4566\' size=\'9

\'></td>';
tab = tab+'<td><input type=\'text\' name=must:'+i+' style=\'text-align:right;\' onclick=\'myfun(this)\' value=\'5677\' size=\'9

\'></td>';
tab = tab+'<td><input type=\'text\' name=sust:'+i+' style=\'text-align:right;\' onclick=\'myfun(this)\' value=\'2445\' size=\'9

\'></td>';
tab = tab+'<td><input type=\'text\' name=yust:'+i+' style=\'text-align:right;\' onclick=\'myfun(this)\' value=\'4355\' size=\'9

\'></td>';
tab = tab+'<td><input type=\'text\' name=eust:'+i+' style=\'text-align:right;\' onclick=\'myfun(this)\' value=\'7473\' size=\'9

\'></td>';
tab = tab+'<td><input type=\'text\' name=wust:'+i+' style=\'text-align:right;\' onclick=\'myfun(this)\' value=\'16534\' size=\'9

\'></td>';
tab = tab+'<td><input type=\'text\' name=zust:'+i+' style=\'text-align:right;\' onclick=\'myfun()\' value=\'1244\' size=\'9

\'></td>';
tab = tab+'<td><input type=\'text\' name=aust:'+i+' style=\'text-align:right;\' onclick=\'myfun(this)\' value=\'13454\' size=\'9

\'></td>';
tab = tab+'</tr>';
}
tab=tab+'</table>';
document.getElementById("tab").innerHTML =tab;
}
function check(){
var tabrows = document.getElementsByTagName('input');
var c=0;
for(var i=0;i<tabrows.length;i++)
{
if(tabrows[i].type == 'text'){
if(tabrows[i].name.match('pust:') != null)
tabrows[i].style.background = '#BBFFFF'
c++;

}

}

alert(c);

}
function myfun(obj){
obj.style.textAlign = 'left';
obj.style.background = '#BBBBBF';

}
></script>
</head>
<body onload="defaultFun(),check()">
<form>
<div id="tab">Table data</div>
</form>
</body>
</html>
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Um, is this new post meant to demonstrate what you're trying to achieve?

As to the original question, what do you have so far? If you're talking about this product, then that's commercial software and should come with documentation and example code, no?
 
sridhar bvap
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
s
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic