|
Finance Chart - Need Some Empty Space |
Posted by Madhu Khemani on Oct-14-2011 08:01 |
|
Hi Peter,
Is there a way to add some empty space to the bottom of the finance chart - kind of like
an indicator, but just blank. I'd like to move a lot of my text annotations to this area, since
they are currently blocking the chart (image attached). Any suggestion you may have to
make these charts more readable will be appreciated.
Thanks,
Madhu
|
Re: Finance Chart - Need Some Empty Space |
Posted by Peter Kwan on Oct-15-2011 03:30 |
|
HI Madhu,
If you are using ChartDirector Ver 5.x, after adding all the indicator charts, you can use something like:
'extend the height by 100 pixels
Call c.setSize(c.getWidth(), c.getHeight() + 100)
Hope this can help.
Regards
Peter Kwan |
Re: Finance Chart - Need Some Empty Space |
Posted by Madhu Khemani on Oct-16-2011 18:24 |
|
Hello Peter,
I'm using the php version of Chartdirector 4.x. Is there an equivalent method for this
version?
Thanks,
Madhu |
Re: Finance Chart - Need Some Empty Space |
Posted by Peter Kwan on Oct-17-2011 23:05 |
|
Hi Madhu,
You can use the same method BaseChart.setSize in ChartDirector Ver 4.x to change the chart size, but you need to know the size you want to change to. For example:
Call c.setSize(400, 740)
For your case, the width 400 should be replaced with width you use to create the FinanceChart in the first place, while the hieght 700 should be replaced with the actual height you want, which is equal to the heights of all main price chart and the indicator charts, plus the top/bottom margin (default is 40 pixels, and configurable by FinanceChart.setMargins), and any extra height you want to use for your text.
Hope this can help.
Regards
Peter Kwan |
|