<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Jozef Chúťka&#039;s blog &#187; LineSeries</title>
	<atom:link href="http://blog.yoz.sk/tag/lineseries/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.yoz.sk</link>
	<description>My life, my work</description>
	<lastBuildDate>Tue, 31 Jan 2012 12:40:53 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Flex Charts &#8211; interpolating values in Series</title>
		<link>http://blog.yoz.sk/2009/12/flex-charts-interpolating-values-in-series/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=flex-charts-interpolating-values-in-series</link>
		<comments>http://blog.yoz.sk/2009/12/flex-charts-interpolating-values-in-series/#comments</comments>
		<pubDate>Fri, 04 Dec 2009 10:12:16 +0000</pubDate>
		<dc:creator>Jozef Chúťka</dc:creator>
				<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[Flash / Flex]]></category>
		<category><![CDATA[Charts]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[interpolateValues]]></category>
		<category><![CDATA[LineChart]]></category>
		<category><![CDATA[LineSeries]]></category>
		<category><![CDATA[Stroke]]></category>

		<guid isPermaLink="false">http://blog.yoz.sk/?p=740</guid>
		<description><![CDATA[Recently, I felt into problem with chart when using interpolateValues parameter set to true. You expect it to work as described in Language Reference. And guess what, it works , but make sure you provide correct numeric values (not strings &#8211; those were problematic in my case). Parameter interpolateValues is able to draw a continuous [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://blog.yoz.sk/wp-content/uploads/interpolateValues.png"><img src="http://blog.yoz.sk/wp-content/uploads/interpolateValues-200x100.png" alt="interpolateValues" title="interpolateValues" width="200" height="100" class="alignleft size-medium wp-image-741" /></a></p>
<p>Recently, I felt into problem with chart when using interpolateValues parameter set to true. You expect it to work as described in <a href="http://www.adobe.com/livedocs/flex/3/langref/mx/charts/series/LineSeries.html#interpolateValues">Language Reference</a>. And guess what, it works <img src='http://blog.yoz.sk/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  , but make sure you provide correct numeric values (not strings &#8211; those were problematic in my case). Parameter interpolateValues is able to draw a continuous line by interpolating the missing value. Missing values means null (v1 in example) or when key is omited (v2).</p>
<p>If you want to use Charts in Flex, download <a href="http://www.adobe.com/cfusion/entitlement/index.cfm?e=flex3sdk">data visualization components for your flex builder</a> and copy content into sdk directory.</p>
<p><span id="more-740"></span></p>
<pre class="brush: xml; title: ; notranslate">&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
&lt;mx:Application xmlns:mx=&quot;http://www.adobe.com/2006/mxml&quot; layout=&quot;vertical&quot;
    backgroundColor=&quot;#ffffff&quot;&gt;
&lt;mx:Script&gt;
&lt;![CDATA[
    import mx.collections.ArrayCollection;

    [Bindable]
    private var dp:ArrayCollection = new ArrayCollection([
        {Month: &quot;Jan&quot;, v1: 1000, v2: 900, v3: &quot;800&quot;, v4: &quot;700&quot;},
        {Month: &quot;Feb&quot;, v1: null, v3: null},
        {Month: &quot;Mar&quot;, v1: 2000, v2: 1900, v3: &quot;1800&quot;, v4: &quot;1700&quot;}
    ]);
]]&gt;
&lt;/mx:Script&gt;

&lt;mx:Stroke id = &quot;s1&quot; color=&quot;blue&quot; weight=&quot;2&quot;/&gt;
&lt;mx:Stroke id = &quot;s2&quot; color=&quot;red&quot; weight=&quot;2&quot;/&gt;
&lt;mx:Stroke id = &quot;s3&quot; color=&quot;green&quot; weight=&quot;2&quot;/&gt;
&lt;mx:Stroke id = &quot;s4&quot; color=&quot;yellow&quot; weight=&quot;2&quot;/&gt;

&lt;mx:LineChart id=&quot;lineChart&quot; height=&quot;100%&quot; width=&quot;100%&quot; dataProvider=&quot;{dp}&quot;&gt;
    &lt;mx:horizontalAxis&gt;
        &lt;mx:CategoryAxis categoryField=&quot;Month&quot;/&gt;
    &lt;/mx:horizontalAxis&gt;
    &lt;mx:series&gt;
        &lt;mx:LineSeries yField=&quot;v1&quot; form=&quot;curve&quot; displayName=&quot;v1&quot;
            lineStroke=&quot;{s1}&quot; interpolateValues=&quot;true&quot;/&gt;
        &lt;mx:LineSeries yField=&quot;v2&quot; form=&quot;curve&quot; displayName=&quot;v2&quot;
            lineStroke=&quot;{s2}&quot; interpolateValues=&quot;true&quot;/&gt;
        &lt;mx:LineSeries yField=&quot;v3&quot; form=&quot;curve&quot; displayName=&quot;v3&quot;
            lineStroke=&quot;{s3}&quot; interpolateValues=&quot;true&quot;/&gt;
        &lt;mx:LineSeries yField=&quot;v4&quot; form=&quot;curve&quot; displayName=&quot;v4&quot;
            lineStroke=&quot;{s4}&quot; interpolateValues=&quot;true&quot;/&gt;
    &lt;/mx:series&gt;
&lt;/mx:LineChart&gt;
&lt;mx:Legend dataProvider=&quot;{lineChart}&quot; direction=&quot;horizontal&quot;/&gt;
&lt;/mx:Application&gt;</pre>
<p>Notice numeric vs. string values in dataProvider. Result:</p>
<p><a href="http://blog.yoz.sk/wp-content/uploads/interpolateValues.png"><img src="http://blog.yoz.sk/wp-content/uploads/interpolateValues.png" alt="interpolateValues" title="interpolateValues" width="643" height="323" class="alignnone size-full wp-image-741" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.yoz.sk/2009/12/flex-charts-interpolating-values-in-series/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

