|
Xaxis Monthly Date Labels from Continous Dates in Perl |
Posted by Mark Gannon on Dec-18-2010 02:34 |
|
Hello,
I have a multichart of daily financial data where I would like to put labels and ticks on the X Axis for the start of each month. Currently the program is in Perl and the daily dates exist in an array of Chartdir dates. Below are an example chart and the current perl code.
Any suggestions would be appreciated.
Regards,
Mark Gannon
|
Re: Xaxis Monthly Date Labels from Continous Dates in Perl |
Posted by Peter Kwan on Dec-18-2010 16:42 |
|
Hi Mark,
Instead of using:
$vol_chart->xAxis()->setLabels(\\@dates);
you may try:
$vol_chart->xAxis()->setLabels2(\\@dates);
$vol_chart->xAxis()->setMultiFormat(perlchartdir::StartOfMonthFilter(), "{value|mmm}");
Hope this can help.
Regards
Peter Kwan |
Re: Xaxis Monthly Date Labels from Continous Dates in Perl |
Posted by Mark Gannon on Dec-19-2010 02:19 |
|
Peter,
That was exactly what I was looking for.
Thank your quick response and great software.
Regards,
Mark Gannon |
|