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

Message ListMessage List     Post MessagePost Message

  Problem with formatted axis label
Posted by Herv? Thomy on Feb-25-2009 20:47
Attachments:
Hi,

I've experienced this kind of issue when i use the method SetLabelFormat on an axis.

I set the label format by calling :

yAxis()->setLabelFormat("{value|g}");

The zero value is represented by the value 9.714e-17 on my Y axis (attached file LabelFormat.png)

I tried to change the label format, but no way to see the 0 value on th Y axis.

Thanks for your help.
Regards,
Herv
LabelFormat.png

  Re: Problem with formatted axis label
Posted by Peter Kwan on Feb-26-2009 00:23
Hi Herv?,

This is a known issue in ChartDirector. It may happen if the axis contain negative numbers, and the label format is {value|g}.

This problem is fixed in the next version of ChartDirector, to be released within a few days. If you are using ChartDirector for C++ on Windows, you may try the release candidate for "ChartDirector for C++ Ver 5.0 for Windows". This should solve the problem.

http://download2.advsofteng.com/v5/chartdir_cpp_win32.zip

If you do not want to try the release candidate, a method to work around the problem is to add the line:

c->yAxis()->addMark(0, -1, "0")->setMarkColor(Chart::Transparent, 0x000000, 0x000000);

Hope this can help.

Regards
Peter Kwan

  Re: Problem with formatted axis label
Posted by Herv? Thomy on Feb-26-2009 00:45
Peter,

Thanks for the tip. It will help me a lot.

Herv