PieChart with sql data source

Posted by: jimmcgoldrick on 7 April 2020, 1:30 am EST

  • Posted 7 April 2020, 1:30 am EST

    I am trying to create an ASP.Net page that displays the data from an ms SQL Database. The native tsql data looks like:

    Description Value
    Foot 7
    Leg 12
    Thigh 10
    Hips 15
    Chest 14

    I am trying to make the Pie Chart from the asp:SqlDataSource and display it in a Pie Chart. For the life of me, I have been unable to display anything. Could you please send me an example of such a chart that I can copy. I have made no progress with this, and it seems trivial. ASP.NET 4.6.1 and Visual Studion 2013 Pro. I would eventually like to access the data on the Client Side using JavaScript, but that looks far off at the moment. Many thanks.
  • Replied 7 April 2020, 6:46 pm EST

    Please refer to the following demo sample to use the PieChart with DataBinding by DataBase.

    In the above case, the AccessDataSource is used which can be replaced with the SqlDataSource.

    Manish Gupta
Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels