This Perl extension allows users to generate graphs using the Imager library.
Another useful function is set_graph_size($size), which allows users to set the size of the graph within the image. By default, the size of images is set to 1.5 * $graph_size. Users may also adjust the width and height of the image in pixels with set_image_width($width) and set_image_height($height), respectively.
Adding data series to the graph is made easy with add_data_series() method. For Imager::Graph::Pie, users can only add one data series. For line/bar graphs, label your data points with set_labels(['label1', 'label2' ... ]). For pie graphs, it is the label for the wedges.
Users can also set the style of the graph with set_style($style_name) which comes with several pre-defined styles: fount_lin (default), fount_rad, mono, primary_red, and primary. The draw() method creates a new image, draws the chart onto that image, and returns it.
Finally, the software also introduces a handy feature that sends an error message; It's only valid when the draw() method fails. Imager::Graph::Sub_class is a fantastic resource that simplifies visualizing data. Use the SYNOPSIS to illustrate how to use different functions.
Version 0.07: N/A