4,816
社区成员
发帖
与我相关
我的任务
分享
<asp:Chart ID="Chart2" runat="server" Width="850px" ImageStorageMode="UseImageLocation"
ImageType="Jpeg">
<Series>
<asp:Series ChartArea="ChartArea1" Name="Series2" XValueType="Double" BackImageAlignment="Center"
BackImageTransparentColor="Transparent" BackSecondaryColor="White" Palette="Pastel"
Label="#VAL" ChartType="Bar" Font="Microsoft Sans Serif, 10pt">
</asp:Series>
</Series>
<Titles>
<asp:Title Name="title" ForeColor="#333399" Font="微软雅黑, 12pt" Text="科室满意率排名%">
</asp:Title>
</Titles>
<ChartAreas>
<asp:ChartArea Name="ChartArea1" BackColor="Transparent" BorderDashStyle="Solid"
BorderColor="Gainsboro" IsSameFontSizeForAllAxes="True">
<AxisX IsLabelAutoFit="False" LabelAutoFitMaxFontSize="14" LabelAutoFitMinFontSize="12">
<LabelStyle Font="Microsoft Sans Serif, 12pt, style=Bold" />
</AxisX>
<Position Height="100" Width="100" />
<InnerPlotPosition Height="85" Width="75" X="25" Y="10" />
<Area3DStyle Enable3D="True" IsRightAngleAxes="False" Perspective="10" Inclination="0"
Rotation="2" />
</asp:ChartArea>
</ChartAreas>
</asp:Chart>
DataSet ds = sftzbll.GetNewZDYTJ(dt1, dt2, 2);
DataTable dt = ds.Tables[0];
if (dt != null)
{
DataRow[] dwlistmyld = dt.Select();
Chart2.Height = 30 * dwlistmyld.Length;
for (int i = 0; i < dwlistmyld.Length; i++)
{
if (dwlistmyld[i]["KS"].ToString() != "" && dwlistmyld[i]["MYD"].ToString() != "")
{
int p = Chart2.Series["Series2"].Points.AddXY(i, Convert.ToDouble(dwlistmyld[i]["MYD"].ToString().Replace("%", "")));
Chart2.Series["Series2"].Points[p].AxisLabel = dwlistmyld[i]["KS"].ToString();
}
}
}