tarunkhanna has asked for the wisdom of the Perl Monks concerning the following question:

Hi, I am creating a graph in excel using perl. Below is the link, I used to refer for creating the chart :- http://search.cpan.org/dist/Spreadsheet-WriteExcel/lib/Spreadsheet/WriteExcel/Chart.pm#Chart_line_weights I am able to create the column chart. But now, I want to change the color of bar that are occuring in the chart. I tried:-
$chart->add_series ( categories => x1_range_formula ('Sheet1',1,9,0,0), values => x1_range_formula ('Sheet1',1,9,1,1), name => 'TEST', color => 'green,' );
This color part is not changing the color in the bars. Default color is occurring in the bars. What shall I do to change the color and width of bars?? Regards

Replies are listed 'Best First'.
Re: excel graph
by zentara (Cardinal) on Sep 12, 2011 at 09:19 UTC
      No...This doesn't contain the required information.
Re: excel graph
by jmcnamara (Monsignor) on Sep 12, 2011 at 16:29 UTC
Re: excel graph
by Anonymous Monk on Sep 12, 2011 at 06:57 UTC
    And where do you see add_series taking a color argument?
      ok..so, how to change the color of bar in graph?? My main motive is to change the color of bar. Regards.