Our software enables users to create graphs directly within Apache handlers, making it easy to visualize data without having to switch between multiple applications. With our streamlined solution, users can quickly generate custom graphs from their data sets and seamlessly integrate them into their web applications.
Following this, the location of the graph must be set with the following code:
< Location /chart >
SetHandler perl-script
PerlHandler +Apache::GD::Graph
## These are optional (defaults shown)
## In days:
#PerlSetVar Expires 30
#
## In megs:
#PerlSetVar CacheSize 5242880
#PerlSetVar ImageType png
#PerlSetVar JpegQuality 75 # 0 to 100
#PerlSetVar TTFFontPath /usr/ttfonts:
#/var/ttfonts:/usr/X11R6/lib/X11/fonts/ttf/:
#/usr/X11R6/lib/X11/fonts/truetype/:
#/usr/share/fonts/truetype
< /Location >
Once these implementations have been done, requests can be sent to create the graph. The request includes information about the graph such as the x-labels, data and colors to be used. For example:
x_labels=[1st,2nd,3rd,4th,5th]&
data1=[1,2,3,4,5]&
data2=[6,7,8,9,10]&
dclrs=[blue,yellow,green]
Alternatively, options can be sent as x-www-form-urlencoded data. However, it must be noted that for situations where query strings are larger than a kilobyte, a posted form must be used instead. If both a query string and a form are used, parameters in the query string will take precedence over those in the form.
Version 0.96: N/A