| Author: Anu 01 Oct 2009 | Member Level: Silver | Rating:  Points: 2 |
in the aspx page , in series section write as shown below:
<asp:Series ChartArea="ChartArea1" Name="Target Achieved" XValueMember ="Date" YValueMembers ="TargetAchieved" ChartType="Line"> </asp:Series>
Where Date is the date in x =axis TargetAchieves column name of your data needed in y-axis
in the aspx.cs file bind the chart as :
Chart1.DataSource = dt; Chart1.DataBind();
where dt is the datatable
|