\documentstyle[a4,makeidx,verbatim,texhelp,fancyhea,mysober,mytitle]{report}%
\input psbox.tex
\parskip=10pt%
\title{Manual for wxChart 1.0: a Chart layout library for wxWindows}
\author{Neil Dudman}
\date{August 1995}%
\makeindex%
\begin{document}%
\maketitle

\pagestyle{fancyplain}
\bibliographystyle{plain}
\pagenumbering{roman}
\setheader{{\it CONTENTS}}{}{}{}{}{{\it CONTENTS}}
\setfooter{\thepage}{}{}{}{}{\thepage}
\tableofcontents%

\chapter{Introduction}
\pagenumbering{arabic}%
\setheader{{\it CHAPTER \thechapter}}{}{}{}{}{{\it CHAPTER \thechapter}}%
\setfooter{\thepage}{}{}{}{}{\thepage}

\winhelponly{\center{{\bf wxChartLayout, by Neil Dudman.\\Version 1.0}}\\}

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.

% This one blows up the printer
%\begin{figure}
%$$\image{6cm;0cm}{chart1.eps}$$
%
%\caption{Line chart}
%\end{figure}
%
\begin{figure}
$$\image{6cm;0cm}{chart2.eps}$$
\caption{Bar and line charts}
\end{figure}

\begin{figure}
$$\image{6cm;0cm}{chart3.eps}$$
\caption{Bar2 and line charts}
\end{figure}

\begin{figure}
$$\image{6cm;0cm}{chart5.eps}$$
\caption{Floating bar chart}
\end{figure}

\begin{figure}
$$\image{6cm;0cm}{chart6.eps}$$
\caption{Pie chart}
\end{figure}

\section{Things I would like to add}

\begin{itemize}\itemsep=0pt
\item Add Legend for Pie, Percent Bar charts
\item Use a spread Sheet widget
\end{itemize}

\chapter{The Test Program}
\setheader{{\it CHAPTER \thechapter}}{}{}{}{}{{\it CHAPTER \thechapter}}%
\setfooter{\thepage}{}{}{}{}{\thepage}

The test program included with the chart library uses the shapes code
written by Julian Smart as part of wxBuilder and allows the chart to be
resized and moved by selecting the object and dragging the corners. The
right mouse button may also be used to bring up a simple frame where
various settings of the graph may be changed (not yet complete). 

All the types of charts that the libarary supports have been added to
the test program as seperate datasets. It is posible to turn off various
datasets by checking various menu options. 

\chapter{Using wxChartLayout}%
\setheader{{\it CHAPTER \thechapter}}{}{}{}{}{{\it CHAPTER \thechapter}}%
\setfooter{\thepage}{}{}{}{}{\thepage}

Include the file {\tt lbchart.h} in your source, and link with the
libary {\tt wxchart.lib} (Windows) or {\tt libwxchart.a} (UNIX).

%The wxChartLayout files consist of:

\input{classes.tex}

\addcontentsline{toc}{chapter}{Index}
\setheader{{\it INDEX}}{}{}{}{}{{\it INDEX}}%
\setfooter{\thepage}{}{}{}{}{\thepage}%
\printindex
\end{document}
