the_hawk_1 has asked for the wisdom of the Perl Monks concerning the following question:
Hi esteemed monks!
I seek your enlightment on a really obscured trouble. To make it worst, it's regarding a Microsoft product: Excel.
I'm trying to creat a 3d chart with a bunch of data, but unfortunately, I can't do anything else than a regular 2D!
Here's the perl code:
Don't worry, the data are in the cells from D5 to D12, and the name are in B5:B12.# Create the chart # $chart = $sheet->ChartObjects->Add(1, 175, 457, 300); $chart->ChartType} = xl3DColumnClustered; $chart->Chart->ChartWizard({Source =>$sheet->Range("D5:D12")}); $chart->Chart->SeriesCollection(1)->{Values}=$sheet->Range("D5:D12"); $chart->Chart->SeriesCollection(1)->{XValues}=$sheet->Range("B5:B12"); $chart->Chart->SeriesCollection(1)->{Values}=$sheet->Range("D5:D12"); $chart->Chart->SeriesCollection(1)->{Name}=$sheet->Range("B5:B12"); $chart->Chart->{HasLegend} = $vtfalse; $chart->Chart->{HasDataTable} = $vtfalse; $chart->Chart->SeriesCollection(1)->{HasDataLabels} = 1;
Can someone help me?
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Excel and Win32::OLE chart problems
by andyford (Curate) on Oct 29, 2007 at 23:34 UTC | |
by the_hawk_1 (Scribe) on Oct 30, 2007 at 15:03 UTC | |
Re: Excel and Win32::OLE chart problems
by bmann (Priest) on Oct 30, 2007 at 19:04 UTC | |
by the_hawk_1 (Scribe) on Oct 30, 2007 at 19:47 UTC | |
by bmann (Priest) on Oct 30, 2007 at 20:08 UTC | |
by the_hawk_1 (Scribe) on Oct 30, 2007 at 21:36 UTC | |
by lvleph (Initiate) on Jul 18, 2008 at 20:13 UTC | |
by Anonymous Monk on Sep 07, 2009 at 11:21 UTC | |
|
Back to
Seekers of Perl Wisdom