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

Message ListMessage List     Post MessagePost Message

  No data available charts image
Posted by Pankaj Arya on Nov-24-2010 14:07
Hi, peter


As you've said,now the database is populated with more than 30 moving averages and also extraPoints is set to be 0. But still the problem remain the same No data available.

Is it so because the variables which are fetched from the database are an array variables? or there is some another problem and if the problem is with the array variables just tell me what can i do to resolve it.

I think these variables are different from the database variables.

Varaibles in financedemocharts.php ---->
$timeStamps, $volData, $highData, $lowData, $openData, $closeData.


Database varaibles----->
$timeStamps[]  $openData[] $highData[] $lowData[] $closeData[]  $volData[].

plz help me out !

  Re: No data available charts image
Posted by Peter Kwan on Nov-25-2010 00:49
Hi Pankaj,

In the financedemocharts.php, please find the line:

return errMsg("No data available for the specified time period");

and change it to:

return errMsg("ExtraPoints = $extraPoints, data point count = ". count($timeStamps) . ", first date to plot = ". getChartYMD($startDate) . ", first date in data = " . getChartYMD($timeStamps[0]) . ", last date in data = " . getChartYMD($timeStamps[count($timeStamps) - 1]));

The above will display the $extaPoints (to confirm if your code really sets it to 0), the number of data points you have, and whether your data is within the time range that you want to plot. (If your code are plotting the last 30 days, but the $timeStamps are 1 years ago, there will be no data that can be plotted.)

Hope this can help.

Regards
Peter Kwan