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

Message ListMessage List     Post MessagePost Message

  can this be done
Posted by olybobo on Jun-24-2010 03:27
dear all;

Can this be done..I would like a situation where I can have two different y-axis on the same graph but sharing a common x-axis. I have looked at the tutorials and do not see any good example. unfortunately i can't post what i am talking about here but I will try to explain to the best of my knowledge.

I want a common x-axis on the graph in which there will be two bar graph. One of the bar graph will be plotted vs the first y-axis on the left side and another will be plotted vs another y-axis on the right side. hence, can this be done. Thank you.

  Re: can this be done
Posted by Peter Kwan on Jun-24-2010 16:21
Ho olybobo,

You can use Layer.setUseYAxis2 to bind a layer to use the second y-axis. You can also use DataSet.setUseYAxis2 to bind a dataset within a layer to use the second y-axis.

You may refer to the sample code "Dual Y-Axis" and "Multiple Axes" for reference. (You may look for these sample code in the ChartDirector documentation index.) These sample code use bars and lines, but you can modify the code to apply the same method to bars only.

Hope this can help.

Regards
Peter Kwan