Fixed some bugs of the previous announced 0.6 and released it as 0.7.0.
Compiled it as component with setting "install in the user component directory" and used it in another project.
Still have to clean up the code though.
(I will try if the component chartsclass.gambas can be used as is -without compiling, and upload it as well then.)
This tar.gz is completely prepared for use as a component.
Unpack, compile with option "Install in the user component directory", and the class is available for all your projects.
Note: I still have to check the visibility of the properties...
Glad to release this 0.5.0 version (that might still need some polish). Now you can make lines, bars (actually columns) * and pie charts * what makes it somehow more complete, even for simple charts. (I needed it in an application, so I had to finish the pie-charts and include it.)
The Main program is also adjusted to try out the pie chart; note pie chart needs percentage numbers; complete pie = 100%. If the given data does not make a full 100%, then a piece of the cake is just missing. You can test this by making the data, convert it to percentages (% button), and then double click on a line in the table with the values to remove this line. The cake will miss this part.... read more
Actually version 0.4.3 to be clear.
There's a lot of extra information that can be used now:
- title of the graph
- subtitle of the graph
- title of the Y-axis
- adapt to negative values (min and max to be given)
- vertical grid lines added
- zero-line adjusted away from vertical center depending on min/max values
https://sourceforge.net/p/chartsclass/screenshot/ChartClass.png
The interface is adjusted accordingly, with a lot of options for the graph:
- show title
- show values
- show axis title
- show axis legend
and the possibility to toggle them all.... read more
After slightly adjusting (removing placeholder method in CChart), it seems to work in Gambas3 as well. Just let me know any problems.
With extra:
Version 0.2 somehow just slipped away.
It contained additions:
+ line-chart and vbar chart as subclasses
+ x, y axis
+ margins in use
+ data value labels
+ data range labels
FMain got an array of labels to show labels on graph.
Very simple version of chart drawing (initial only bars).
Project contains the class CChart.
The class is used from within the mail program;
start from an array of float values that is generated in FMain.
Draw in an existing Drawing Area on the main window (FMain).
Lines to be added soon...
Use:
Download the ChartsClass-x.x.tar.gz file.
Unpack in the directory where your own Gambas projects are:
tar -xzvf chartsclass-x.x.tar.gz... read more
Gambas is a perfect tool to generate Desktop applications for Linux. Although a chart module or class is on its way (at least for gambas3), and some promising beta code was included in Gambas2, I had the need to display some simple graphs in an existing Gambas desktop program.
These are the circumstances now, may 2013, the moment where this project starts.
First target: ChartsClass must draw a single line graph and a bar graph.
It has to draw a graph without too much knowledge of the Class, i.e. even without much parameters, it should draw a simple graph; the least you need is an array with values to graph:... read more