ChartDirector 6.2 (.NET Edition)

The First WPF Project from Scratch

In the previous section The First WPF Project, we introduce a simple bar chart example using code from the "NetWPFCharts" sample project. The code is structured so that the sample charts are browsable by the chart explorer in the "NetWPFCharts" project.

To use the code in your own project, you may copy the code inside the "createChart" method to your project, and change the "viewer" variable to the name of your control.

In this section, we will provide step by step instructions as an example.

Note that the above code is the same as that in the previous section The First WPF Project, except that the variable "viewer" is replaced with the actual name of the control "WPFChartViewer1". Please refer to the previous version for detail explanation of the code.