Chart1.DataSource = MyDataSource; Chart1.DataBind();
<asp:Chart ID="Chart1" runat="server" OnLoad="Chart1_Load"> <series> <asp:Series IsValueShownAsLabel="True" Name="Series1" XValueMember="Name" YValueMembers="No_Of_Posts"> </asp:Series> </series> <chartareas> <asp:ChartArea Name="ChartArea1"> <AxisY Title="No Of Posts"> </AxisY> <AxisX Title="Name"> </AxisX> </asp:ChartArea> </chartareas> </asp:Chart>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)