Contents Up Previous Next

Introduction

This manual describes a chart drawing class library for wxWindows. It provides the start of a graphing tool; currently wxChartLayout supports the layout of bar, line, area, curve floating bar, percent bar, pie, xyplot. There are a number of user definable options to minor and major tickmarks, 3D display (bars only) etc. Multiple datasets may be defined per chart, each of which may have different display types.

wxChartLayout is an abstract class that must be subclassed. The programmer defines various member functions which will access whatever data structures are appropriate for the application, and wxChartLayout uses these when laying out the chart.

wxStoredBarLineChart is a class derived from wxChartLayout that may be used directly to draw data in a chart on a canvas. It supplies storage for the data in a two dimensional array and draws to a device context of the Canvas passed to the constructor function.

Below are the example charts generated by the program test.cc.

Figure 1.1: Bar and line charts

Figure 1.2: Bar2 and line charts

Figure 1.3: Floating bar chart

Figure 1.4: Pie chart

Things I would like to add