Additional Sample Code
The ChartDirector software distribution includes a lot of of code samples. They are designed as tutorials to introduce various ChartDirector chart types and features step by step. As tutorials, they tend to be simple for ease of understanding.

From time to time, for support or internal testing, we develop test code that combines multiple ChartDirector features and uses more advanced programming techniques such as multithreading. As these code might be of interest to other developers, we package them into code samples and publish them.
Multithreading Real-Time Chart in C++ (MFC, Qt), C# (.NET Windows Forms, WPF) and Java
Multithreading Real-Time Chart
[C++ (MFC/Qt), C# (.NET Windows Forms, WPF) and Java]
This example illustrates a multithreading real-time chart with zooming, scrolling and programmable track cursor features, and you can save the charts on the fly in PDF or as PNG/JPG/BMP images.
Real-Time Chart with Viewport Control in C++ (MFC, Qt), C# (.NET Windows Forms, WPF) and Java
Real-Time Chart with Viewport Control
[C++ (MFC/Qt), C# (.NET Windows Forms, WPF) and Java]
This example illustrates a real-time chart with a viewport control, with zooming, scrolling and programmable track cursor features, and you can save the charts on the fly in PDF or as PNG/JPG/BMP images.
Real-Time Sweep Chart in C++ (MFC, Qt), C# (.NET Windows Forms, WPF) and Java
Real-Time Sweep Chart
[C++ (MFC/Qt), C# (.NET Windows Forms, WPF) and Java]
In most ChartDirector real-time chart examples, when the data lines reach the right border, the chart will scroll to the left to leave space for more data. In contrast, in this Real-Time Sweep Chart example, when the data lines reach the right border, they will wrap back and restart from the left side.
Real-Time Chart with Measurement Cursors in C++ (MFC, Qt) and C# (.NET Windows Forms, WPF)
Real-Time Chart with Measurement Cursors
[C++ (MFC, Qt) and C# (.NET Windows Forms, WPF)]
Normally, a track cursor follows the mouse as it moves. But in this example, the track cursor is controlled with mouse drag. This allows multiple track cursors on the chart, and we can display the data changes between two track cursors.
Real-Time Chart with Measurement Cursors in C++ (MFC, Qt) and C# (.NET Windows Forms, WPF)
Interactive Surface Chart
[C++ (MFC, Qt) and C# (.NET Windows Forms, WPF)]
This example demonstrates a surface chart that can rotate in 3D using mouse drag. An important part of this example is to illustrate continuous chart interaction in ChartDirector by using the viewport event system.