asp.net vs2008 中 怎么使用chart控件
已经安装好了
数据源是list<obj>
cs也引用charting了
不知道怎么往下写,求解
------解决方案--------------------------------------------------------
- HTML code
<asp:CHART ID="chQxhz" runat="server" BackColor="211, 223, 240" BackGradientStyle="TopBottom" BorderColor="#B54001" BorderlineDashStyle="Solid" BorderWidth="2px" Height="300px" ImageLocation="~/TempImages/ChartPic_#SEQ(300,3)" Width="400px"> <legends><asp:Legend Docking="Bottom" Name="Legend1"></asp:Legend></legends> <titles> <asp:Title Font="Trebuchet MS, 12pt, style=Bold" ForeColor="26, 59, 105" ShadowColor="32, 0, 0, 0" ShadowOffset="3" Text="Project"> </asp:Title></titles> <borderskin skinstyle="Emboss" /> <series> <asp:Series BorderColor="180, 26, 59, 105" BorderWidth="3" ChartType="Line" Color="220, 65, 140, 240" MarkerSize="8" MarkerStyle="Circle" Name="thirdfind" LegendText="S1" ShadowColor="Black" ShadowOffset="2" XValueType="Double" YValueType="Double" Legend="Legend1"> </asp:Series> <asp:Series BorderColor="180, 26, 59, 105" BorderWidth="3" ChartType="Line" Color="220, 224, 64, 10" MarkerSize="8" MarkerStyle="Circle" Name="selffind" LegendText="S2" ShadowColor="Black" ShadowOffset="2" XValueType="Double" YValueType="Double" Legend="Legend1"> </asp:Series> <asp:Series ChartArea="ChartArea1" ChartType="Line" Legend="Legend1" Name="ortherfind" LegendText="S3" ></asp:Series> <asp:Series ChartArea="ChartArea1" ChartType="Line" Legend="Legend1" Name="orther" LegendText="S4"></asp:Series></series> <chartareas> <asp:ChartArea BackColor="OldLace" BackGradientStyle="TopBottom" BackSecondaryColor="White" BorderColor="64, 64, 64, 64" BorderDashStyle="Solid" Name="ChartArea1" ShadowColor="Transparent"> <area3dstyle Inclination="40" IsClustered="False" IsRightAngleAxes="False" LightStyle="Realistic" Perspective="9" Rotation="25" WallWidth="3" /> <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>