Hi, i have a chart with two series' for the y axis. i am using Spreadsheet::WriteExcel to create these charts. Is it possible that I could display the data and name for the 2nd Y-axis as well?
If yes, How?
Please suggest...
i tried the following but it is not working because the value of hash key
name is being overwritten in the later part of the below given code.
Code:-
#
#some more code
#
$chartsheet=$workbook2->add_worksheet('Chart');
$chart=$workbook2->add_chart(type=>'line', embedded=>1);
$chart->set_plotarea(weight=>'none');
$chart->add_series(
categories=>xl_range_formula('series1',1,$row_max,1,1),
values=>xl_range_formula('series1',1,$row_max,3,3),
name=>'series1'
);
$chart->set_y_axis(name=>'Y-axis1');
$chart->add_series(
categories=>xl_range_formula('series2',1,$row_max,1,1),
values=>xl_range_formula('series2',1,$row_max,5,5),
name=>'series2'
);
$chart->set_y_axis(name=>'Y-axis2');
$chart->set_x_axis(name=>'X-axis');
$chartsheet->insert_chart(0,0,$chart,0,0,1,1);
Is there any workaround to this?
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: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.