

With the GDI+ drawing functions, it’s not hard to implement a 3-D pie element but the real challenge was to place them in correct place and in correct order. And that’s what drove me to rewrite the 3-D pie implementation with the concept of “drawing everything”. But with the existing design, this was not possible. The solution was to take out or rather slip out the small slice of elements from pie and display them. So a solution was needed to show this small slice of elements on the pie without affecting the proportions. In the above graph, Item2 is not visible in the pie. The proportionality makes some pie elements disappear with small percentage values. So this had implied implementing the 3-D pie as it was.īut the 3-D pie has a minor drawback. My first goal was to implement a simple pie chart control with a set of simple functionalities.

Less drawing portions had given the pie less processing on graphics objects and it caused the animations to be a bit fast. So the first reason somewhat implied by this reason or the other way around. So with the 3-D pie, the drawn portions are the upper elliptical surface, and the portion between 0 to 180 angles of the cylindrical face. This is “draw only what can be seen” concept. They are: Draw the Visible Portion of the 3-D Pie These characteristics were valid and relevant for my first implementation but held up against for further improvements. Backgroundįirst of all, my first implementation had its own characteristics in drawing 3-D faces which I adhere to for several reasons. This will be interesting to every one who took a good look into my first article. This article contains details regarding the improvements, challenges faced and the particular solutions. The new functionalities are more on 3-D pie chart. If you have seen the article, A Simple Pie Chart Control which was written to describe a simple pie chart implementation done using GDI+ graphics functionality, then this article is designated to the same pie chart control, updated with many improvements in 3-D pie chart and some added functionality to enhance the quality.
