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

Message ListMessage List     Post MessagePost Message

  Chart rendered in vector SVG does not truncate labels properly
Posted by Geoff Groskreutz on Mar-21-2014 10:29
Attachments:
Using Java ChartDirector 5.1.1 (just downloaded and tested)

I am using the setWidth(45) and setTruncate(45) on the label of the yAxis and xAxis labels, but as you can see in the SVG screenshot, it is not properly truncating the labels in the xAxis (on the left, since axis are swapped), by putting the 3 dots (...) at the end of the truncated label, but is instead just repeating the last character instead of using the (...). And you can see in the PNG chart version screenshot that it is correctly truncating the label and putting in the (...).

Let me know if this is a bug, and what can be done to correct it, since we are planning on switching our tool to use SVG output, since it is scaleable.

Thanks,

Geoff
svg_chart_img.png
png_chart_img.png

  Re: Chart rendered in vector SVG does not truncate labels properly
Posted by Peter Kwan on Mar-22-2014 01:46
Hi Geoff,

This is in fact due to a bug in ChartDirector. From your description, I assume you are using
ChartDirector for JSP/Java.

To solve the problem, please use the following updated "ChartDirector.jar" to replace your
existing "ChartDirector.jar".

http://www.advsofteng.com/cdjava511p3.zip

Hope this can help.

Regards
Peter Kwan

  Re: Chart rendered in vector SVG does not truncate labels properly
Posted by Soufiane Jhioui on Mar-11-2015 23:02
Hallo,

Im using the version PHP of chartdirector and i'm having exactly the same problem.
The labels are not truncated properly but the last character is repeated three times.

How do i get this problem solved with Chartdirector for PHP ?

Thank you

  Re: Chart rendered in vector SVG does not truncate labels properly
Posted by Peter Kwan on Mar-11-2015 23:57
Hi Soufiane,

You would need to apply a patch. Would you mind to inform me which operating system
edition of ChartDirector for PHP your using? (Is it Linux 32-bit or Linux 64-bit or other OS?)

Regards
Peter Kwan

  Re: Chart rendered in vector SVG does not truncate labels properly
Posted by Soufiane Jhioui on Mar-12-2015 00:06
Hallo,

Thank you for the quick reply.

Actually I'm working on 2 different OS (Win 64bit for the developpement and Linux 64bit for the production) si it will be greait if i could have the patch for both OS.

Regards

  Re: Chart rendered in vector SVG does not truncate labels properly
Posted by Peter Kwan on Mar-13-2015 04:00
Hi Soufiane,

I have just uploaded the updated DLL and shared object for Win64 and Linux (x86_64) to
our web site:

http://www.advsofteng.com/chartdir60b1_win64.zip

http://www.advsofteng.com/libchartdir512p1_linux_64.zip

Note that the Windows DLL above is a beta DLL for ChartDirector 6, which has this issue
fixed. From our testing, it can produce SVG 6 times faster than the current version. (We
test the performance by producing the SVG in memory. The actual performance would also
depend on network speed and/or hard disk I/O speed.)

Regards
Peter Kwan

  Re: Chart rendered in vector SVG does not truncate labels properly
Posted by Soufiane Jhioui on Mar-16-2015 19:15
Hallo,

The patch works great in Linux OS, but i'm still having a problem loading the new DLL in Win O2S.

I have the following error :

PHP Warning:  Error loading ".....bin\\php\\php5.4.14\\ext\\chartdir.dll" [error code = 126]
in Unknown on line 0
PHP Fatal error:  Unable to start ChartDirector PHP API module in Unknown on line 0

Maybe it's because i'm using Apache 32bit on Win 64bit.  Here is my actuel configuration :

- System : Windows NT 980-PC 6.1 build 7601 (Windows 7 Business Edition Service Pack 1) i586
- Compiler : MSVC9 (Visual C++ 2008)
- Architecture : x86
- PHP Extension Build : API20100525,TS,VC9
- Apache Version : Apache/2.2.22 (Win32) PHP/5.4.14

Thanks for your Help.

Regards.
Soufiane Jhioui.

  Re: Chart rendered in vector SVG does not truncate labels properly
Posted by Peter Kwan on Mar-17-2015 00:26
Hi Soufiane,

You probably need to use the 32-bit edition of ChartDirector. For ChartDirector for PHP, the
"OS architecture" to use depends on the "OS architecture" of the PHP. It seems the OS
architecture of your PHP system is 32-bit (x86 means 32-bit, x64 means 64-bit).

I have just uploaded the 32-bit DLL to:

http://www.advsofteng.com/chartdir60b1_win32.zip

Please kindly try it to see if it works in your environment.

Regards
Peter Kwan

  Re: Chart rendered in vector SVG does not truncate labels properly
Posted by Soufiane Jhioui on Mar-17-2015 17:28
Hallo,

Many thanks for your Help, the 32 bit version works fine on our Windows Server.
I have a last Question if you don't mind.

It seems that our chartdirector licence "chartdir.lic" does not work anymore with the new Win DLL, so now we have a yellow banner lines at the bottom of all charts. Is that because this is ? new version (version 6) ?

Is there ? patch with the version 5.1.x on Windows so we can work on the same version on both OS and so that our licence work fine ?

Regards
Soufiane Jhioui

  Re: Chart rendered in vector SVG does not truncate labels properly
Posted by Peter Kwan on Mar-18-2015 06:17
Hi Soufiane,

Yes. We can back-port the fix to ChartDirector 5.1 as well. Please give us one more day to
perform the port and do the testing.

Regards
Peter Kwan