ASE Home Page Products Download Purchase Support About ASE
ChartDirector General
Forum HomeForum Home   SearchSearch

Message ListMessage List     Post MessagePost Message

  Xaxis Monthly Date Labels from Continous Dates in Perl
Posted by Mark Gannon on Dec-18-2010 02:34
Attachments:
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
test.png
BondChart.pm
BondChart.pm

2.55 Kb

  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