Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

excel::write::xlsx change worksheet names

by fionbarr (Pilgrim)
on Jul 17, 2014 at 18:03 UTC ( #1094100=perlquestion: print w/ replies, xml ) Need Help??
fionbarr has asked for the wisdom of the Perl Monks concerning the following question:

I'm creating a chart and the worksheet that holds this chart comes up as 'chart1'...I'd like to give it my own name. code looks like this:
sub write_pie_chart { my $data_ref = shift; my $chart = $workbook->add_chart( type => 'Pie' ); # Configure the chart. $chart->add_series( categories => '=Table!$B$7:$B$12', values => '=Table!$C$7:$C$12', ); $chart->set_title( name => 'chart name' );
}

Comment on excel::write::xlsx change worksheet names
Download Code
Re: excel::write::xlsx change worksheet names
by Corion (Pope) on Jul 17, 2014 at 18:14 UTC

    The documentation of ->add_chart() documents a "name" parameter which is supposed to "Set the name for the chart sheet".

    What happened when you tried that parameter?

    How did it fail for you?

      missed that....sorry thank you

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (6)
As of 2015-07-03 16:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (54 votes), past polls