<table valign="center">
<td valign="bottom"> <div style='background-color:red;width=1;height=400'> </td>
<%
int HorX=10;
int chartwidth = 100;
int VerY[] = {100, 200, 800, 100};
int vmax=300;
int i=0;
int tdwd = chartwidth-(HorX*4)/HorX;
System.out.println("tdwd"+tdwd);
int h;
for(int len=0;len<4;len++)
{
System.out.println("ver"+VerY[len]);
h = VerY[i] / (vmax / 100);
System.out.println("h"+h);
%>
<td valign="bottom"> <div style='background-color:pink; width:"<%=(tdwd-5)%>";height: "<%=h%>"'> </td>
<%
i++;
}
%>
<tr>
<td></td>
<%
for (i=0;i<4;i++)
{
%>
<td> <div> <%=VerY[i]%> </div> </td>
<%
}
%>
</tr>
</table>
This is the HTML code i hav used and i want the X and Y axis in the bar chart to be drawn along with the values.