VC6 Draw a 3D pie chart

Source: Internet
Author: User

Work need to use the pie chart, looking for a half-day on the internet, also did not find that beautiful 3D pie-like code, are 2D, do not like. Inadvertently, see someone with the. NET implementation of the 3D pie chart, get inspired, simply do it yourself.

In fact, it is very simple to use the pie sector function to draw two of the same, up and down spacing of the split circle. But that's just not enough, you see:

(Figure I)

The parts of the Chinese box need to be fixed. The author of the original text is amended as shown in Figure II:

(Figure II)

However, the author also said that in the pie is thicker or more segmented, because of the angle of the relationship, there will be a phenomenon of leakage. By modifying, I use the correction method shown in Figure three:

(Figure III)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.