sub add_chart_func { my $name = shift; my $chart = $workbook->add_chart( name => "$name",type => 'line' , +embedded => 1); $chart->set_title( name => "$name" ); $chart->add_series( categories => xl_range_formula( 'sheet', 1+$Graph_table_last_ro +w, $row, 1, 1 ), values => xl_range_formula( 'sheet', 1+$Graph_table_last_ro +w, $row, 2, 2 ), name => "$var1", ); $chart->add_series( categories => xl_range_formula( 'sheet', 1+$Graph_table_last_ro +w, $row, 1, 1 ), values => xl_range_formula( 'sheet', 1+$Graph_table_last_ro +w, $row, 3, 3 ), name => "$var2", ); $Graph_table_last_row = $Graph_table_last_row + 3; $grpsheet->insert_chart( "J$Graph_table_last_row", $chart, 10, 10, + 1.7, 1.5); $Graph_table_last_row = $row + 5; $graph_table_no++; }

$Graph_table_last_row is a global variable which contains the cell from top from where next chart will be drawn.

If I add '10' charts by calling the above function 10 times, In first 9 charts, the attributes on x-axis are printed properly. But in last chart, the attributes are printed alternately. I mean to say, while printing chart...x-axis attibutes are printed as 0,2,4,6,8,10. But at the place of 1,3,5,7,9 nothing is displayed. What shall I do to resolve this issue?? Regards.

In reply to Excel editing perl by tarunkhanna

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.