Hi Chris,
If you are sure you have provided labels to the chart and the chart should have labels, and no label is being displayed, and you are using Linux or FreeBSD or Solaris, then the most likely reason is because no font is available in the system, or the fonts are not accessible due to security restrictions.
On Windows and Mac OS X, the fonts come standard with the OS, and ChartDirector will automatically use fonts provided by the OS. In Linux, FreeBSD and Solaris, the OS may not include font. To get fonts, ChartDirector assumes the font files are in the "fonts" subdirectory under the directory that contains "libchartdir.so".
In the ChartDirector for Linux/FreeBSD/Solaris distribution, the "libchartdir.so" (and other shared objects) and the fonts subdirectory are in "ChartDirector/lib". In the past, I have encountered quite a number of cases in which people copied the "libchartdir.so" and the other shared objects to another directory, but forgot to copy the "fonts" subdirectory. As a result, the charts had no text.
If the above is the cause of the problem, copying the "fonts" subdirectory to the same directory that contains the active "libchartdir.so" will solve the problem.
Another possibility that is common in web applications is that the fonts are not accessible to the web server (which usually runs as the "anonymous" user). Please make sure the fonts subdirectory and the font files are readable by "everyone".
ChartDirector normally will report errors to the standard error handling mechanism of the programming framework. For example, if you are using Python, it will throw Python exceptions.
However, font errors are not reported (as is common in many graphics applications). Instead, ChartDirector will use its best effort to render text. For example, if a font is not available, ChartDirector will try to substitute it with another font. If no font is available, it will just render empty space.
Because font issues are usually due to incorrect installation (eg. missing fonts subdirectory), in many editions of ChartDirector, there is a "check installation" script that will print out a log to show how ChartDirector searches for fonts. If you are using ChartDirector in a web application, in the first page of the sample code menu, on the left side, there is a link that says "check installation", which will run the check installation script. The script is usually called "cdinfo.???" (in which ??? = asp/pl/py/php/jsp ... depending on your programming language).
If you need further help, please kindly try the "cdinfo.???" script and informs me what is the result.
Hope this can help.
Regards
Peter Kwan |