Tutorial: Changing to a 3D Chart

This tutorial demonstrates how to use three-dimensional (3D) chart areas in your Chart control, as well as how to use custom attributes in series.

This tutorial uses the Chart control you created in Tutorial: Creating a Basic Chart.

Changing to a 3D Chart

Follow the steps below to change the second chart area to a 3D chart.

To change to a 3D chart

  1. Open the ChartAreas Collection Editor for your Chart control.

  2. In the Members area, click ChartArea1.

  3. In the 3D category of the ChartArea1 properties area, expand the Area3DStyle property.

  4. Set the following properties in the Area3DStyle property:

    Property Value

    Enable3D

    True

    WallWidth

    0

  5. Click OK, and then run your application.

Changing to Cylinder Bars

Follow the steps below to change the bars in the bar chart to cylinders.

To change bars to cylinder bars

  1. Open the Series Collection Editor for your Chart control.

  2. In the Members area, click BarChart.

  3. In the Misc category of the BarChart properties area, expand the CustomProperties property.

    The CustomProperties property contains a set of custom attributes for a series of a particular chart type. For more information, see Custom Attributes.

  4. In the DrawingStyle list, select Cylinder.

  5. Click OK, then run your application.

Next Step

You have now learned how to use 3D chart areas and use custom attributes to enhance your chart appearance. To learn about data binding, see Tutorial: Data Binding a Chart to a Database.

See Also

Reference

System.Web.UI.DataVisualization.Charting
System.Windows.Forms.DataVisualization.Charting

Other Resources

Getting Started

Build Date:

2012-08-02