|
Multichart Alignment : issue with OHLC and Candlestick |
Posted by Yogesh Iparkar on Oct-13-2011 18:41 |
|
Hi Peter,
i m using multichart in which i have added different types of chart line,step
line,ohlc,candlestick...
The alignment of the xAxis for Line and OHLC is not proper. they are not coming in straight
line.
Following image shows it in red.
How can i make them align.
|
Re: Multichart Alignment : issue with OHLC and Candlestick |
Posted by Peter Kwan on Oct-14-2011 02:06 |
|
Hi Yogesh,
You may use Axis.setIndent on all charts.
By default, if an XYChart contains a bar layer, box-whisker layer, ohlc layer or candlestick layer, ChartDirector will "indent" the x-axis. It means the first point (x = 1 in your case) will not occur on the left-most position of the x-axis, but will be indented for 0.5 unit. It is becaus a bar, box, OHLC or candlestick symbol all have finite width, so we need to reserve some space at both ends of the axis for the bar, box or symbol. This is configurable using Axis.setIndent.
If you call c.xAxis().setIndent(true), then the axis for all charts will be indented. This makes the line chart x-axis consistent with the other charts.
Hope this can help.
Regards
Peter Kwan |
|