我正在使用Asp.net的Splines图表。我想在图表控件上使用多样条线
<asp:Chart ID="Chart1" runat="server" Width="1200" DataSourceID="SqlDataSource1">
<Series>
<asp:Series Name="Series1" ChartArea="ChartArea1" ChartType="Spline" XValueMember="abc" YValueMembers="Expr1"></asp:Series>
</Series>
<ChartAreas>
<asp:ChartArea Name="ChartArea1"></asp:ChartArea>
</ChartAreas>
</asp:Chart>
答案 0 :(得分:0)
最后!我按照下面提到的那样做了
string seriesName = "TestRuns";
Chart1.Series.Add(seriesName);
Chart1.Series[seriesName].ChartType = System.Web.UI.DataVisualization.Charting.SeriesChartType.Spline;
Chart1.Series[seriesName].YValueMembers = "TestRunsDatafield";
Chart1.Series[seriesName].XValueMember = "date1";
string seriesName = "ODIRuns";
Chart1.Series.Add(seriesName);
Chart1.Series[seriesName].ChartType = System.Web.UI.DataVisualization.Charting.SeriesChartType.Spline;
Chart1.Series[seriesName].YValueMembers = "ODIRunsDataFiels";
Chart1.Series[seriesName].XValueMember = "date1";