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

Message ListMessage List     Post MessagePost Message

  Adding y-axis label only in specified graph
Posted by ram on Dec-23-2015 04:13
Hi Peter,

I  have four graphs under 4 headings x1 ,x2 ,x3 & x4 vertically placed and am trying to
add y-axis lable only on graph where X2header = "RAM".is this possible.?

Please help.

Thank you.

  Re: Adding y-axis label only in specified graph
Posted by Peter Kwan on Dec-23-2015 23:30
Hi ram,

Yes. If your code does not specify the y-axis scale, by default, ChartDirector will
automatically determine the y-axis scale and labels based on your data. For everything in
ChartDirector that can have a configurable color, including the y-axis labels, you can hide
them by setting their colors to transparent. For example (in Java/C#):

c.yAxis().setColors(Chart.Transparent, Chart.Transparent);

So for your case, you can hide the y-axis labels for three of the charts and only leave one
of the labels on one the chart you want to have labels.

Regards
Peter Kwan