This tutorial will teach you how to create 3D charts in ASP.NET 4.0 using Visual Web Developer 2010.

Creating 3D Charts in ASP.NET 4.0

This tutorial will be covering how to create 3D charts in ASP.Net 4.0. 3D charts can look very professional if done right,
and this guide will show you some of the different settings to tweak when using 3D charts.

For a More Basic Overview of Charts in ASP.NET 4.0 go Here


1. Create a 3D chart next to our 2d chart

2. Look at the Various Different things you can do to improve the looks of your 3D Chart

Create a 3D Chart

1. We are going to begin this step by dragging another Chart object onto our PayRoll.aspx
Page from the Toolbar(remember you should be in Design View)

2. Next we make the Chart a Column Chart like the one from our previous project.

3. Now we must open the properties for the new chart and click the ellipses button (…)
of the ChartAreas property.

4. Once inside the ChartAreas Collection Editor we can go to the 3D chart settings (Area3dStyle)
and change the (Enable3D) option to true.

This will enable our Chart to be 3d Run the project now and view the Chart.

Change the style of the 3D Chart

1. As you can see from the picture below there are quite a few Properties that we can edit
to change the way our 3D chart is displayed

a. (Enable3D) is a Boolean that states whether or not you want a 3D table

b. Inclination is and integer from -90 to 90 that states at what angle you are looking at the Chart from
-90 will be directly below and 90 will be directly above. I find the number between 5 and 20
to be the only useful ones for most charts tweak this as you please to change your viewpoint

c. IsClustered is a Boolean that will allow you to have multiple charts of the same type one behind another for an interesting
view of multiple similar charts

d. IsRightAngle is a Boolean that will enable all right angle to keep their form despite rotation of the Chart.
This may be necessary for some charts, but it’s always off for me.

e. LightStyle is a choice of Realistic, Simplistic, or None based on which lighting you wish to have on your chart.
Feel free to mess around with this until you find the right one

f. Perspective is a Percentage from 0 to 100 of how far your chart goes into the Z axis(looks like it’s going into the screen)
a number from 10-15 is usually good here but feel free to tweak this number depending on what Chart you are using

g. PointDepth is a percent from 0-1000 that will extend how deep your chart goes, if you edit this you may need
to edit the perspective in order to balance it out 100 is default and it is what is most commonly used.

h. PointGapDepth is a percent from 0-1000 much like PointDepth, but it will not change the width of your 3D bars/points
only push them further back on the Chart. The default number here is again recommended.

i. Rotation is the number of degrees of rotation you want your Chart to be around the Y-Axis.
0 degrees will make this look almost 2D again while 90 degrees will show you only the side of the Chart.
An angle of 20-40 degrees is recommended here based on what type of Chart you are working with.

j. WallWidth is the number of pixels thick each of the walls is on the Chart.


In Conclusion 3D Charts can be very helpful if used correctly, and they are easy to setup. With the description above and a few minutes working with tweaking a 3D Chart you should have no problems getting what you want out of it.

Download Source Files