soumyapanda has asked for the wisdom of the Perl Monks concerning the following question:
Am using the below code to generate pie chart for some data. Am able to generate the chart successfully but am unable to set the size of the chart. How can i set the size of the chart of my choice? Also i want to set color for different sections of the chart of my choice. How can i do that?
Am using Win32::ole to generate charts
$piedata =[ ["NAME","TOM"], ["AGE","22"], ]; $sheet = $workbook -> Worksheets(3); $sheet -> Activate; $range_of_data = $workbook->ActiveSheet->Range("H1:I2"); $range_of_data->{Value} = $piedata; $chart = $workbook->Charts->Add; $chart->SetSourceData($range_of_data, 2); $chart->{ChartType} = 70; $chart->Location(2, "Sheet1");
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Prepare charts using Win32::ole
by Corion (Patriarch) on Jul 28, 2011 at 07:00 UTC | |
|
Re: Prepare charts using Win32::ole
by Ratazong (Monsignor) on Jul 28, 2011 at 07:20 UTC | |
|
Re: Prepare charts using Win32::ole
by davies (Monsignor) on Jul 31, 2011 at 12:14 UTC | |
by soumyapanda (Acolyte) on Aug 01, 2011 at 05:11 UTC | |
by davies (Monsignor) on Aug 01, 2011 at 08:47 UTC | |
by soumyapanda (Acolyte) on Aug 05, 2011 at 03:49 UTC |