Tired of this predicament, I finally took the plunge and decided it was time to design them myself. It’s a lot like trying to re-invent the wheel… because when the wheel costs $800 on the average, maybe it is time for re-inventing 🙂
So, here’s my version of graph plotting : CGraph
Here’s what it looks like during implementation :
I created a test application (testdraw) and used a menu option to show the 3 types of graphs created by my CGraph class and its helper classes (CGraphLegend, CGraphSeries).
It also allows printing for line and pie graphs as well.
In the sample program, I have attempted to use every command in the CGraph and other classes. To use the classes, include them in your project and at the top of the file using them. To build a simple graph, follow these guidelines :
- Create a graph object. You can pass a parameter for graph type if desired.
- Set your graph type, if not done in step 1.
- 0 – bar graph(default)
- 1 – line graph
- 2 – pie graph
I have attempted to provide a fairly detailed help file for use with these classes. If not sufficient, mail me and let me know what I can do to improve it.