This class implements a line chart and a bar chart - and now pie-chart too (upd nov 2013).
In the simplest use, start from an array of values to draw a chart.
Choose options to switch on/off titles, labels, values on the graph.
Choose to supply min and max value and adjust the dimensions in the chart.
Use the class in your project by copying the source in your project, or as component (from v 0.6) by compiling with "make executable" option.
Find out how to use it by the included example program: The class is delivered as part of a complete project, so that you can try it out. And you can modify the FMain code to learn how it can be usefull for your project.
The sample data used, is generated in the example program and displayed in a grid on screen.
No database or other extra things needed, works in KDE and (should) in other desktops like Ubuntu's, Gnome etc.
Made and tested in and for Gambas2.
- Draw a bar graph from an array of float values.
- Draw a line graph from an array of float values
Be the first to post a review of ChartsClass!