ChartDirector 7.1 (.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.

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