110,918
社区成员
发帖
与我相关
我的任务
分享
<asp:Chart ID="Chart1" runat="server" Width="800" Height="500"
Palette="BrightPastel"
BorderColor="26, 59, 105"
BackColor="#D3DFF0"
BorderDashStyle="Solid"
BackSecondaryColor="White"
BackGradientStyle="TopBottom"
BorderWidth="2"
ImageStorageMode="UseHttpHandler">
<Series>
<asp:Series Name="Series1" >
</asp:Series>
<asp:Series Name="Series2">
</asp:Series>
<asp:Series Name="Series3">
</asp:Series>
</Series>
<Legends>
</Legends>
<ChartAreas>
<asp:ChartArea Name="ChartArea1" BorderColor="64, 64, 64, 64" BackSecondaryColor="White"
BackColor="64, 165, 191, 228" ShadowColor="Transparent" BackGradientStyle="TopBottom">
<Area3DStyle Rotation="10" Perspective="10" Inclination="15" IsRightAngleAxes="False"
WallWidth="0" IsClustered="False" />
<AxisY LineColor="64, 64, 64, 64">
<LabelStyle Font="Trebuchet MS, 8.25pt, style=Bold" />
<MajorGrid LineColor="64, 64, 64, 64" />
</AxisY>
<AxisX LineColor="64, 64, 64, 64">
<LabelStyle Font="Trebuchet MS, 8.25pt, style=Bold" />
<MajorGrid LineColor="64, 64, 64, 64" />
</AxisX>
</asp:ChartArea>
</ChartAreas>
</asp:Chart>
void BindData()
{
DataTable gx = new DataTable();
gx = SetData("01");
Chart1.Series[0].Points.DataBindXY(gx.DefaultView, "groupId", gx.DefaultView, "rate");
DataTable yd = new DataTable();
yd = SetData("02");
Chart1.Series[1].Points.DataBindXY(yd.DefaultView, "groupId", yd.DefaultView, "rate");
}