How to find the cordintate ? RRS feed

  • Question

  • User-845805365 posted

    HI all,

    i am facing some issue with drawing a 3d pie chart.

    i am trying to do somethign like this


    i am not good in mathematics.

    from the example above,


    else // Draw normally
    objGraphics.FillPie(objBrush, x, y, width,
    height, startAngle, sweepAngle);

      i know the starting x and y coordinate, strart angle and sweep angle.

    my intention is to write something like

    1. J# Users : 5%
    2. C# Users : 80%
    3. VB.NET Users : 15%

    j#,C#,vb.net in the middle of each arc....

    this has to be dynamic. in the above ezxample(link) its not dynamic.. where a specific angle is iven(45 degreee). but my requirement is to get it done depending upon the percentages....


    How can i do that.... 



    Tuesday, November 4, 2008 11:47 PM

All replies

  • User815917640 posted

    I can't understand your problem. Isn't the code already doing the same thing. J# 5%, C# 80%, VB.NET 15% ?

    Help up understand your problem.

    Thursday, November 6, 2008 10:00 AM
  • User-845805365 posted

     Thanks for your reply...

    my requirement is exactly something like this....


    I am able to draw this somehow, but the issue is that i am not able to write the content or label the pie chart.

    can you please just go through the above link that i have provided. i wann write brown, red,green blue.......

     Pie Chart



    Tuesday, November 11, 2008 6:36 AM