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

Message ListMessage List     Post MessagePost Message

  Line up data pts on line graph above bar graph
Posted by Debby on May-18-2012 03:19
I have two graphs, one is a line graph and the other is a bar graph.  I want to line up the points for a given month above the middle of the bar graph below for the same month.  How do I go about this?

  Re: Line up data pts on line graph above bar graph
Posted by Peter Kwan on May-18-2012 23:55
HI Debby,

First, may sure the two charts are using the same x-coordinates. Then in the line chart, please call Axis.setIndent on the x-axis. For example, in C#, it is like:

c.xAxis().setIndent(true);

The above is needed because by default, if a chart contains a bar layer or a box-whisker layer or a layer derived from the BaseBoxLayer, the x-axis will automatically be set to "indented". If the line chart does not use an indented axis, the x-axis labels may not match exactly.

Hope this can help.

Regards
Peter Kwan