Hello, I use financial chart
I week ago I got problems with year labels, it prints 0046 and 0047 instead of 2013 and 2014. I replace
// $timeStamps = array_keys($data);
to
$timeStamps = array_map('chartTime2', array_keys($data));
....
$FC->setData($timeStamps, null, null, null, $closeData, null, null);
but received error
Warning: array_map() expects parameter 1 to be a valid callback, function 'chartTime2' not found or invalid function name in /xxxxx/Charts.php on line 23
I print graphics in loop, error is only first time. First chart is bad. If I delete quotes, I received error and wrong chart each time
$timeStamps = array_map(chartTime2, array_keys($data));
I used php 5.5 and latest phpchardir module
it is used here: http://oscreener.com/options_screener/Bull_Put_Spread/view/charts/page/1/sort |