#ifndef CHART_H #define CHART_H 1 #include "gd.h" /* The C exclusive OR operator | can be used to combine any or all of these. */ #define chartBar 1 #define chartCross 2 #define chartLine 4 typedef int chartType; /* A module to draw a chart on the specified gd image. The chart will occupy the entire image. The image should be created first with gdImageCreate(). The "units" string must be no longer than 100 characters! */ void chartDraw(gdImagePtr im, chartType t, char **labels, char *units, float *data, int points); #endif /* CHART_H */