Hi,
I need another pair of eyes to glance at the following code.I am trying to create a bar chart and this code section is supposed to draw the bars in the chart. It draws the first dataset only.
The inner loop works fine but the outer one does the first loop and then doesn't continue. Where is my error?
Thanks
Mich
if (chartType == 2) {
int width = (barwidth/nSeries)/2;
int jump = 0;
for (int j=0;j<xTags;j++)
{
curx = startx+jump;
for(int i=0;i<=nSeries;i++)
{
cury = cHeight-((barheight*seriesIdata[i][j]/yJumps));
s2d.setColor(new Color(Integer.parseInt(seriesA[i]
[1]),Integer.parseInt(seriesA[i][2]),Integer.parseInt(seriesA[i][3])));
s2d.fillRect(curx,cury,width,(barheight*seriesIdata[i]
[j])/yJumps);
curx +=width*2;
}
s2d.drawString(Integer.toString(curx),30,j*10);
jump += barwidth;
}
}