locked
Need an example of how to make a simle Pie Chart. RRS feed

  • Question

  • None of the examples I've found work.  Here is what I am looking for:

    using System.Web.UI.DataVisualization.Charting;

    A simple C# pie chart showing two percentages with decimals, i.e.

    51.40% Dogs and 48.60% Cats.

    Thank you.



    • Edited by vbMark Wednesday, September 27, 2017 3:25 PM
    • Moved by CoolDadTx Thursday, September 28, 2017 1:46 PM ASP.NET related
    Wednesday, September 27, 2017 2:36 PM

All replies

  • Wednesday, September 27, 2017 2:46 PM
  • None of those examples work.
    Wednesday, September 27, 2017 3:16 PM
  • Hello vbMark,

    Please tell me which program you are using , is it windows form, wpf , ASP.NET , xamarin , etc. And what result you want to achieve, simple  or colourful?

    Sincerely,

    neil hu


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Thursday, September 28, 2017 7:31 AM
  • Please post questions related to ASP.NET charts in the ASP.NET forums.
    Thursday, September 28, 2017 1:46 PM
  • Hi Neil,

    ASP.NET MVC.

    A simple C# pie chart showing two percentages with decimals, i.e.

    51.40% Dogs and 48.60% Cats.

    Dogs series green and Cats series red.

    Numbers outside the chart with lines pointing to the chart area.

    Thank you.

    Thursday, September 28, 2017 2:21 PM