Hi,
This is Poornima. Currently iam working on flex, very new to flex. I just know 
the basics such as some UI designing and server-side programming in flex. Now i 
have to work on Flex Charting. I started that project by learning the basic 
charts but now i am having lots of doubts in that. Can any one help me?

The request goes to the server and response come back to flex in the format of 
XML.XML file looks like:
<response>
<data>
    <key>24/10 05</key>
    <value>500</value>
</data>
<data>
    <key>24/10 06</key>
    <value>510</value>
</data>
<data>
    <key>24/10 07</key>
    <value>520</value>
</data>
<data>
    <key>24/10 08</key>
    <value>530</value>
</data>
<data>
    <key>24/10 09</key>
    <value>540</value>
</data>
<data>
    <key>24/10 10</key>
    <value>550</value>
</data>
<response>


This is the xml response where KEY represents the date and time and VALUE 
represents a particular value for the key.
<data>
    <key>24/10 05</key> -- represents date and time date in the format of 
(DD/MM) 24/10 and time (HH) 05
    <value>500</value> -- represents an integer value.
</data>
Here Key represents x-axis and Value represents y-axis.

1. Which axis is better for this type of xml response?

2. If i use linear axis or category axis it is drawing the graph based on first 
characters of key means in this case of xml it is always taking 24 as the key 
(x-axis point) and different values (500,510,520,530,540,550 etc) as 
values(y-axis points) showing a straight vertical line at a single point of 
x-axis ie 24. How can i overcome this problem and graph will work for different 
values of key ie graph should work for the days iam giving, months iam giving 
and also for hours iam giving? Is there any possibility to do that?

3.Once i tried the samething with DateTimeAxis in X-Axis but it is showing 
"Invalid Date". Iam getting any Graph. How to draw the graph with datetime axis 
with this type of xml responses.

4.If i use DateTime Axis is it really change the graph according to the 
dataUnits i am giving?

Can any one give me an idea on how to handle with these issues. Please send me 
replies. Waiting for all your replies..

Thanks in Advance.
Poornima.


      

Reply via email to