|
How to......hide it...partII |
Posted by JJJ on Sep-16-2011 21:24 |
|
I am trying to hide ..
FinanceChart c = new FinanceChart(324);
c.addMainChart(130).getLegend().setPos(-99, -99);
it's ok
but i need ..... use -----> setPlotArea();
c.addMainChart(139).setPlotArea(5,5,320,140); |
Re: How to......hide it...partII |
Posted by Peter Kwan on Sep-17-2011 01:33 |
|
Hi JJJ,
If you need to use an object twice, please save it in a variable first. For example:
//save the returned object in a variable
XYChart m = c.addMainChart(130);
//now you can call its methods
m.getLegend().setPos(-99, -99);
m.setPlotArea(5,5,320,140);
.....
*** NOTE ***: Instead of using setPlotArea, I suggest you use FinanceChart.setMargins to control the size of the plot area.
Hope this can help.
Regards
Peter Kwan |
Re: How to......hide it...partII |
Posted by JJJ on Sep-20-2011 09:05 |
|
thanks for your quick reply. |
|