Chart Library for C Programmers
2016-05-19:
The author Peter Lane created a simple chart library for C programs. The library is designed to be included in other programs, simply by copying two files to your C project: chart.h and chart.c.
Three types of chart are supported:
 Above is a screenshot of the Chart example running under MINT+XaAES on a Firebee. |
1. Bar Charts: A set of positive values is converted into a series of vertical bars. The title, x/y labels, colours and fill patterns of bars may be altered. 2. Line Charts: A set of lines added to a line chart. The title, x/y labels, and colour, line style and point style may all be altered. 3. Pie Charts: A set of positive values is converted into slices of a pie chart. The title, slice labels, colours and fill patterns may be altered.
All charts are drawn using standard VDI graphics, and scale themselves to fit a given drawing area. (As the Firebee does not support pmarkers, these are custom drawn within the library: define the symbol PMARKS when compiling to use these.)
The chart library was written in the AHCC compiler. An example program provided with the library (illustrated in the image) shows how to use all the charts. Full documentation is in chart.h. An example of using the library in another project can be found in the latest BibFind (see http://peterlane.info/bibfind.html ).
More information and links to the files are at: http://peterlane.info/chart.html
0 Comments
|
|
|
Latest News
|
The FireBee FreeMiNT Setup 2022
2022-12-31:
This year we are back with a strong sign of life. Now that the website is up and ...
|
Read more
|
EmuTOS 1.2 and 1.2.1
2022-12-25:
On August 07th 2022 EmuTOS Development Team published new version 1.2 of free and ...
|
Read more
|
EmuTOS 1.1.1
2021-08-16:
On July 08th 2021 EmuTOS Development Team published new version 1.1 of this free ...
|
Read more
|
|