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

Message ListMessage List     Post MessagePost Message

  Facing some issue to custom yaxis percentage labels
Posted by Divya on Aug-06-2012 18:43
Hi,
I am using Chart Director 5.0 version. I am using a percentage bar chart.

Here my requirement is i want to make labels  0% and 100% of the y-axis  bold and the rest
should be normal.Is there any method or function for doing this.

please help me out with this issue asap.

Thanks,
Divya

  Re: Facing some issue to custom yaxis percentage labels
Posted by Peter Kwan on Aug-07-2012 03:59
Hi Divya,

Yes. There are several methods. One method is to use Axis.addMark, like (as I am not sure of your programming language, I will use Java/C# in the following example):

c.yAxis().addMark(0, -1, "0%", "Arial Bold", 8).setMarkColor(0xcccccc, 0x000000, 0x000000);

c.yAxis().addMark(100, -1, "100%", "Arial Bold", 8).setMarkColor(0xcccccc, 0x000000, 0x000000);

(Note: For other editions of ChartDirector, the font name may need to be specified as "arialbd.ttf".)

Hope this can help.

Regards
Peter Kwan

  Re: Facing some issue to custom yaxis percentage labels
Posted by Divya on Aug-07-2012 21:22
Thanks a lot it was really helpful.