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
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.
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.
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.
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.