|
Create Multichart from FinanceCharts |
Posted by Xiaolu Zhang on May-09-2012 00:18 |
|
Hello,
I currently have 2 separate FinanceCharts present in my application. I am trying to
implement a "Print" method that prints out all of them to the same file (png, bmp, jpg etc).
The two FinanceCharts just contain XYCharts.
Is there a way to create a new MultiChart that contains both FinanceCharts?
Thanks |
Re: Create Multichart from FinanceCharts |
Posted by Xiaolu Zhang on May-09-2012 00:38 |
|
Nevermind I figured it out:
MultiChart test(pChart1_->getWidth(), pChart1_->getHeight()+pChart2_-
>getHeight());
test.addChart(0,0,pChart1_.get());
test.addChart(0, pChart1_->getHeight(), pChart2_.get());
return test.makeChart(sFilePath.c_str());
If I'm doing this in an unsafe/improper way let me know, otherwise I think I've got it. |
|