问题描述
privatevoidshow(){//stringswf="MSCombi3D.swf";stringswf="Pie3D.swf";StringBuildernr=newStringBuilder();nr.AppendFormat("<chartbaseFont='宋体'caption='在职与离退休人员情况统计图(按单位性质统计)'baseFontSize='12'>");sql1="";sql1取得数据单位性质,在职人数,离退人数SqlConnectionconn=newSqlConnection(ConfigurationManager.AppSettings["dsn"].ToString());SqlCommandcmd=newSqlCommand(sql1,conn);SqlDataReaderrd;conn.Open();rd=cmd.ExecuteReader();while(rd.Read()){nr.AppendFormat("<setlabel='"+rd["content"].ToString()+"'value='"+rd["离职"].ToString()+"'/>");}rd.Close();nr.AppendFormat("</chart>");textchar.Text=FusionCharts.RenderChart("../comm/FusionCharts/Charts/"+swf,"",nr.ToString(),"chart1Id","650","400",false,true);}nr.AppendFormat怎么写可以实现按单位性质柱形图,一列双柱数据如下
解决方案
解决方案二:
千万别沉啊,千万别沉啊
时间: 2024-12-25 11:25:26