我从数据库里面取出了数据后存放到了一个这样的dataset.table里面:(一个显示人数的二维表)
**** 正高 副高 中级 初级
男 38 62 56 12
女 7 37 55 10 现在我希望能做到如下功能:**** 正高 副高 中级 初级
男 38 62 56 12 绘图
女 7 37 55 10 绘图
绘图 绘图 绘图 绘图点击上面的“绘图”后就出现相应的参数的直方图,让显示更形象点.....
就像个投票统计一样的,我想比哪个复杂点.....
不知道大家明白了没有...,在线等待,过两天要交货了,谢谢...!!!
**** 正高 副高 中级 初级
男 38 62 56 12
女 7 37 55 10 现在我希望能做到如下功能:**** 正高 副高 中级 初级
男 38 62 56 12 绘图
女 7 37 55 10 绘图
绘图 绘图 绘图 绘图点击上面的“绘图”后就出现相应的参数的直方图,让显示更形象点.....
就像个投票统计一样的,我想比哪个复杂点.....
不知道大家明白了没有...,在线等待,过两天要交货了,谢谢...!!!
for(int i=1;i<=24;i++)
countx[i]=count[i];
//for(int i=1;i<=28;i++)
// Label10.Text+=count[i]+" ";
// return;
Max=count[1]; for(int i=1;i<=24;i++)
{
if(count[i]>0)
count[i]=(count[i]/Max)*350;
}
if(count[1]>0)
{
Label1.Text=colleges[college[1]]; Image1.Width=350;
Image1.ToolTip="本月发表"+countx[1]+"篇";
} if(count[2]>0)
{
Label2.Text=colleges[college[2]];
Image2.Width=(int)count[2];
Image2.ToolTip="本月发表"+countx[2]+"篇";
}
if(count[3]>0)
{
Label3.Text=colleges[college[3]];
Image3.Width=(int)count[3];
Image3.ToolTip="本月发表"+countx[3]+"篇";
}
if(count[4]>0)
{
Label4.Text=colleges[college[4]];
Image4.Width=(int)count[4];
Image4.ToolTip="本月发表"+countx[4]+"篇";
}
if(count[5]>0)
{
Label5.Text=colleges[college[5]];
Image5.Width=(int)count[5];
Image5.ToolTip="本月发表"+countx[5]+"篇";
}
if(count[6]>0)
{
Label6.Text=colleges[college[6]];
Image6.Width=(int)count[6];
Image6.ToolTip="本月发表"+countx[6]+"篇";
}
if(count[7]>0)
{
Label7.Text=colleges[college[7]];
Image7.Width=(int)count[7];
Image7.ToolTip="本月发表"+countx[7]+"篇";
}
if(count[8]>0)
{
Label8.Text=colleges[college[8]];
Image8.Width=(int)count[8];}
Image8.ToolTip="本月发表"+countx[8]+"篇";
if(count[9]>0)
{
Label9.Text=colleges[college[9]];
Image9.Width=(int)count[9];}
Image9.ToolTip="本月发表"+countx[9]+"篇";
if(count[10]>0)
{
Label10.Text=colleges[college[10]];
Image10.Width=(int)count[10];
Image10.ToolTip="本月发表"+countx[10]+"篇";
} if(count[11]>0)
{
Label11.Text=colleges[college[11]];
Image11.Width=(int)count[11];
Image11.ToolTip="本月发表"+countx[11]+"篇";
} if(count[12]>0)
{
Label12.Text=colleges[college[12]];
Image12.Width=(int)count[12];
Image12.ToolTip="本月发表"+countx[12]+"篇";
} if(count[13]>0)
{
Label13.Text=colleges[college[13]];
Image13.Width=(int)count[13];
Image13.ToolTip="本月发表"+countx[13]+"篇";
}
if(count[14]>0)
{
Label14.Text=colleges[college[14]];
Image14.Width=(int)count[14];
Image14.ToolTip="本月发表"+countx[14]+"篇";
}
if(count[15]>0)
{
Label15.Text=colleges[college[15]];
Image15.Width=(int)count[15];
Image15.ToolTip="本月发表"+countx[15]+"篇";
}
if(count[16]>0)
{
Label16.Text=colleges[college[16]];
Image16.Width=(int)count[16];
Image16.ToolTip="本月发表"+countx[16]+"篇";
}
if(count[17]>0)
{
Label17.Text=colleges[college[17]];
Image17.Width=(int)count[17];
Image17.ToolTip="本月发表"+countx[17]+"篇";
}
if(count[18]>0)
{
Label18.Text=colleges[college[18]];
Image18.Width=(int)count[18];
Image18.ToolTip="本月发表"+countx[18]+"篇";
}
if(count[19]>0)
{
Label19.Text=colleges[college[19]];
Image19.Width=(int)count[19];
Image19.ToolTip="本月发表"+countx[19]+"篇";
}
if(count[20]>0)
{
Label20.Text=colleges[college[20]];
Image20.Width=(int)count[20];
Image20.ToolTip="本月发表"+countx[20]+"篇";
}
if(count[21]>0)
{
Label21.Text=colleges[college[21]];
Image21.Width=(int)count[21];
Image21.ToolTip="本月发表"+countx[21]+"篇";
}
if(count[22]>0)
{
Label22.Text=colleges[college[22]];
Image22.Width=(int)count[22];
Image22.ToolTip="本月发表"+countx[22]+"篇";
}
if(count[23]>0)
{
Label23.Text=colleges[college[23]];
Image23.Width=(int)count[23];
Image23.ToolTip="本月发表"+countx[23]+"篇";
}
if(count[24]>0)
{
Label24.Text=colleges[college[24]];
Image24.Width=(int)count[24];
Image24.ToolTip="本月发表"+countx[24]+"篇";
}