ASE Home Page Products Download Purchase Support About ASE
ChartDirector Support
Forum HomeForum Home   SearchSearch

Message ListMessage List     Post MessagePost Message

  Pie-chart labels or not visible on Linux-64
Posted by chaitanya on Jun-19-2013 14:53

Created a pie-chart using chartDir
PieChart *c = new PieChart( 220, 240 );
With some data and labels.

c->setData(
DoubleArray( &vData[ 0 ], static_cast< int > (vData.size()) ),
StringArray( &vLabels[ 0 ], static_cast< int> (vLabels.size()) ) );


Pie-chart labels are not visible on Linux-64.
On other platforms we don't have this issue.

Can you please let me know if there are any known issues related to piehcart labels on 64bit Linux.

Thanks and Regards,
Chaitanya

  Re: Pie-chart labels or not visible on Linux-64
Posted by chaitanya on Jun-19-2013 14:55

I am using QT framework and setting the pie-chart on QWidget.

  Re: Pie-chart labels or not visible on Linux-64
Posted by Peter Kwan on Jun-19-2013 18:34
Hi chaitanya,

Have you verified that you have copied the "fonts" subdirectory to the directory that contains the active "libchartdir.so.5.1.0" (or "libchartdir.so.x.x.x" where x.x.x depends on the ChartDirector version)? Windows and Mac OS X comes with fonts, but Linux, FreeBSD and Solaris may not have fonts in operating system defined locations. So for Linux, FreeBSD and Solaris, there is a "fonts" subdirectory for ChartDirector, which should contain the font files.

If the above still does not solve the problem, please try the followings font loading test:

char buffer[4096];
Chart::testFont("arial.ttf", 0, 8, 8, 0, buffer);

//display the result on the console
printf("%s\\n", buffer);

Please kindly let me know what is the result. For your pie chart, you may also try to use the "Simple Pie Chart" sample code (with all data and text strings hard coded) to ensure the text strings are not empty.

Regards
Peter Kwan

  Re: Pie-chart labels or not visible on Linux-64
Posted by chaitanya on Jun-19-2013 19:54
Hi Peter,

After copying fonts directory to lib64 directory( where libchartdir.so is present ),
this issue got resolved.

Now labels are appearing perfectly on Linux64.

Thanks a lot for your quick help.

Best Regards,
Chaitanya