Hi Sachin.  The chart code doesn't have any functionality for generating missing values...in specific cases (like yours) that may be OK, but generally its an interpretation of the data with an assumption that we can't make.
 
My suggestion is to do what you've suggested, but on the client side.  AS3 is extremely fast...filling in 24x7 missing values shouldn't be a problem. And that way you wouldn't pay the cost of sending and processing the XML.
 
You also could write a custom series that did the interpolation at render time, but that's a lot more work, and probably not necessary.
 
Ely.
 


From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Sachin Dharmapurikar
Sent: Wednesday, May 10, 2006 10:56 PM
To: [email protected]
Subject: [flexcoders] DateTimeAxis question for Charts

Hello everybody,

 

I am trying to get a timeline chart. For this my requirement use case is as follows –

 

Input data –

 

Date                             Count

5/1/06 10:00                  500

5/1/06 17:00                  232

5/2/06 19:00                  400

5/4/06 13:00                  158

5/8/06 16:00                  168

5/9/06 14:00                  175

5/9/06 11:00                  236

 

 

I get above data from a database query. I send this data to flex client using XML. I want a chart which shows hourly chart for the week. Now as you can see for many hours there is no data available.

 

Still, I want flex should show that those hours are having zero data. If I use date time axis, it displays the tool tips for the items for which the count is available. If the count is not available then it displays nothing.

 

I can fill the gaps by Java code, but you can see there will be around 24 x 7 hours entries out of which most will carry zero count. It will not only increase the XML size but the number of elements to process. Can I avoid this?

 

Can anybody help?

 

Regards,

Sachin



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com




SPONSORED LINKS
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS




Reply via email to