Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Excel Chart

by Don Coyote (Pilgrim)
on Nov 19, 2012 at 14:01 UTC ( #1004543=note: print w/replies, xml ) Need Help??


in reply to Excel Chart

For your initial problem, I think you may need to concatenate and interpolate your '$worksheet!' hash values.

$chart->add_series( categories => '='."$worksheet".'!$B$1:$E$1', values => '='."$worksheet".'!$A$1:$E$1450', name => 'chart1', );

Replies are listed 'Best First'.
Re^2: Excel Chart
by Anonymous Monk on May 31, 2016 at 08:11 UTC
    Instead of hard coding as " categories => '='."$worksheet".'!$B$1:$E$1' ", Can we make it dynamic to select the range of cells to plot the chart? Any idea how to make it dynamic?

      Making the range dynamic is as easy as constructing the appropriate string for the range.

      Have a look at Re^3: Win32::Ole excel external data range, in which I show the use of dynamic ranges. It does other things too (it's answering a different question), but I think it's reasonably clear.

      Regards,

      John Davies

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1004543]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (12)
As of 2016-09-29 14:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Extraterrestrials haven't visited the Earth yet because:







    Results (554 votes). Check out past polls.