I am developing a web application and now I am trying to develop a dashboard using ASP.NET charts. I am trying now to develop a chart that shows the number of users who uses the system. I have a table in my database that keeps the username of the users who uses the system. I dragged the chart from the toolbox to my web application as shown below.
<asp:Chart ID="Chart1" runat="server" DataSourceID="SqlDataSource1">
<series>
<asp:Series Name="Series1">
</asp:Series>
</series>
<chartareas>
<asp:ChartArea Name="ChartArea1">
</asp:ChartArea>
</chartareas>
</asp:Chart>
<asp:SqlDataSource ID="SqlDataSource1" runat="server"
ConnectionString="<%$ ConnectionStrings:testConnectionString %>" SelectCommand="SELECT COUNT(DISTINCT Username) AS NumberOfUsers FROM dbo.UserQuiz">
</asp:SqlDataSource>
I debbugged the file and I did not get any error but the browser does not show any chart in the website and I don't know why.
I am using Visual Studio 2010 and .NET Framework 4.0