Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. How can I put the value close to the edge of Pie chart.

How can I put the value close to the edge of Pie chart.

Scheduled Pinned Locked Moved C#
helpquestiongraphics
4 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    Junior Boy
    wrote on last edited by
    #1

    I have been thinking and figuring to put the value close to the curve or the edge of the pie chart. I know how the chart it drawing but it really to figure out how the position of X,Y moving. Anybody can help me with this problem? Thank you very much for all your help. Ps. my english so poor and hope you guy understand what I mean.

    junior boy

    C CPalliniC 2 Replies Last reply
    0
    • J Junior Boy

      I have been thinking and figuring to put the value close to the curve or the edge of the pie chart. I know how the chart it drawing but it really to figure out how the position of X,Y moving. Anybody can help me with this problem? Thank you very much for all your help. Ps. my english so poor and hope you guy understand what I mean.

      junior boy

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      If you're drawing it yourself, you already know where the edge is. If you're not, what do you know ? The centre point and radius ? You can work it out from there easy enough.

      Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )

      J 1 Reply Last reply
      0
      • J Junior Boy

        I have been thinking and figuring to put the value close to the curve or the edge of the pie chart. I know how the chart it drawing but it really to figure out how the position of X,Y moving. Anybody can help me with this problem? Thank you very much for all your help. Ps. my english so poor and hope you guy understand what I mean.

        junior boy

        CPalliniC Offline
        CPalliniC Offline
        CPallini
        wrote on last edited by
        #3

        Well, with a bunch of sin and cos and a bit of multiplication, you can do it. Can you be more precise in your questions? :)

        If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.

        In testa che avete, signor di Ceprano?

        1 Reply Last reply
        0
        • C Christian Graus

          If you're drawing it yourself, you already know where the edge is. If you're not, what do you know ? The centre point and radius ? You can work it out from there easy enough.

          Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )

          J Offline
          J Offline
          Junior Boy
          wrote on last edited by
          #4

          Thank you for your suggestion,Christian Graus. I coding it by my own and I know exactly where the center is but the problem is I can not put the value that go around the pie such as in MS.Exel. If you have any idea to suggest to me that will be very kind of you. Thank you for all replied.

          junior boy

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups