HTTPService. The data is xml which flex parses to an object
(resultFormat='object'). For some of the LineSeries the data is not
contiguous. The problem is that the chart is still drawing these
missing datapoints. It draws them at 0, although the datatips show
no value for them. We have tried returning an empty tag or leaving
the tag out completely but the points still show up. Here's some
sample code that demonstrates the issue without using the
HTTPService.
Any ideas?
<?xml version="1.0"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
<mx:Script>
<![CDATA[
[Bindable]
private var xml:XML =
<values>
<value>
<a></a>
<b>2</b>
</value>
<value>
<a>1</a>
<b>2</b>
</value>
<value>
<a>1.5</a>
<b>2</b>
</value>
<value>
<b>2</b>
</value>
</values>;
]]>
</mx:Script>
<mx:Panel title="Line Chart">
<mx:LineChart dataProvider="{xml.value}" showDataTips="true">
<mx:series>
<mx:Array>
<mx:LineSeries yField="a"/>
<mx:LineSeries yField="b"/>
</mx:Array>
</mx:series>
</mx:LineChart>
</mx:Panel>
</mx:Application>
--
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
- Visit your group "flexcoders" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.