<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Removing the default drop shadow from a LineChart chart in Flex</title>
	<atom:link href="http://blog.flexexamples.com/2007/11/13/removing-the-default-drop-shadow-from-a-linechart-chart-in-flex/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.flexexamples.com/2007/11/13/removing-the-default-drop-shadow-from-a-linechart-chart-in-flex/</link>
	<description>Just a bunch of Adobe Flex Examples</description>
	<lastBuildDate>Fri, 19 Mar 2010 20:35:16 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: peterd</title>
		<link>http://blog.flexexamples.com/2007/11/13/removing-the-default-drop-shadow-from-a-linechart-chart-in-flex/comment-page-1/#comment-1856</link>
		<dc:creator>peterd</dc:creator>
		<pubDate>Mon, 25 Feb 2008 07:07:38 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2007/11/13/removing-the-default-drop-shadow-from-a-linechart-chart-in-flex/#comment-1856</guid>
		<description>michael,

I think you need to set the &lt;code&gt;seriesFilters&lt;/code&gt; property to an empty array and then manage the &lt;code&gt;filters&lt;/code&gt; properties manually for each of the LineSeries objects.

Something like the following:
&lt;pre class=&quot;code&quot;&gt;
&lt;?xml version=&quot;1.0&quot;?&gt;
&lt;!-- http://blog.flexexamples.com/2007/11/13/removing-the-default-drop-shadow-from-a-linechart-chart-in-flex/ --&gt;
&lt;mx:Application xmlns:mx=&quot;http://www.adobe.com/2006/mxml&quot;
        layout=&quot;vertical&quot;
        verticalAlign=&quot;middle&quot;
        backgroundColor=&quot;white&quot;
        creationComplete=&quot;init();&quot;&gt;

    &lt;mx:Script&gt;
        &lt;![CDATA[
            import mx.charts.series.LineSeries;
            import mx.charts.AxisRenderer;
            import mx.charts.CategoryAxis;
            import mx.charts.LinearAxis;
            import mx.charts.LineChart;

            private var lineChart:LineChart;

            private function init():void {
                // vertical axis
                var linearAxis:LinearAxis = new LinearAxis();
                linearAxis.baseAtZero = false;
                linearAxis.title = &quot;Price&quot;;

                // horizontal axis
                var categoryAxis:CategoryAxis = new CategoryAxis();
                categoryAxis.categoryField = &quot;@date&quot;;
                categoryAxis.title = &quot;Date&quot;;

                // horizontal axis renderer
                var axisRenderer:AxisRenderer = new AxisRenderer();
                axisRenderer.axis = categoryAxis;
                axisRenderer.setStyle(&quot;canDropLabels&quot;, true);

                // series 1
                var series1:LineSeries = new LineSeries();
                series1.yField = &quot;@close&quot;;
                series1.displayName = &quot;Close&quot;;
                series1.setStyle(&quot;form&quot;, &quot;curve&quot;);
                series1.filters = [];
                // series 2
                var series2:LineSeries = new LineSeries();
                series2.yField = &quot;@open&quot;;
                series2.displayName = &quot;Open&quot;;
                series2.setStyle(&quot;form&quot;, &quot;curve&quot;);
                series2.filters = [new GlowFilter()];

                lineChart = new LineChart();
                // lineChart.seriesFilters = [];
                lineChart.showDataTips = true;
                lineChart.dataProvider = dp;
                lineChart.percentWidth = 100;
                lineChart.percentHeight = 100;
                lineChart.verticalAxis = linearAxis;
                lineChart.horizontalAxis = categoryAxis;
                lineChart.horizontalAxisRenderers = [axisRenderer];
                lineChart.series = [series1, series2];
                addChild(lineChart);

                seriesFilterArr = lineChart.seriesFilters;
            }

            private function checkBox_click(evt:MouseEvent):void {
                var len:uint = lineChart.seriesFilters.length;
                if (len &gt; 0) {
                    lineChart.seriesFilters = [];
                } else {
                    lineChart.seriesFilters = seriesFilterArr;
                }
            }
        ]]&gt;
    &lt;/mx:Script&gt;

    &lt;mx:XMLListCollection id=&quot;dp&quot;&gt;
        &lt;mx:source&gt;
            &lt;mx:XMLList&gt;
                &lt;quote date=&quot;8/27/2007&quot; open=&quot;40.38&quot; close=&quot;40.81&quot; /&gt;
                &lt;quote date=&quot;8/24/2007&quot; open=&quot;40.5&quot; close=&quot;40.41&quot; /&gt;
                &lt;quote date=&quot;8/23/2007&quot; open=&quot;40.82&quot; close=&quot;40.6&quot; /&gt;
                &lt;quote date=&quot;8/22/2007&quot; open=&quot;40.4&quot; close=&quot;40.77&quot; /&gt;
                &lt;quote date=&quot;8/21/2007&quot; open=&quot;40.41&quot; close=&quot;40.13&quot; /&gt;
                &lt;quote date=&quot;8/20/2007&quot; open=&quot;40.55&quot; close=&quot;40.74&quot; /&gt;
                &lt;quote date=&quot;8/17/2007&quot; open=&quot;40.18&quot; close=&quot;40.32&quot; /&gt;
                &lt;quote date=&quot;8/16/2007&quot; open=&quot;39.83&quot; close=&quot;39.96&quot; /&gt;
                &lt;quote date=&quot;8/15/2007&quot; open=&quot;40.22&quot; close=&quot;40.18&quot; /&gt;
                &lt;quote date=&quot;8/14/2007&quot; open=&quot;41.01&quot; close=&quot;40.41&quot; /&gt;
                &lt;quote date=&quot;8/13/2007&quot; open=&quot;41&quot; close=&quot;40.83&quot; /&gt;
                &lt;quote date=&quot;8/10/2007&quot; open=&quot;41.3&quot; close=&quot;41.06&quot; /&gt;
                &lt;quote date=&quot;8/9/2007&quot; open=&quot;39.9&quot; close=&quot;40.75&quot; /&gt;
                &lt;quote date=&quot;8/8/2007&quot; open=&quot;39.61&quot; close=&quot;40.23&quot; /&gt;
                &lt;quote date=&quot;8/7/2007&quot; open=&quot;39.08&quot; close=&quot;39.42&quot; /&gt;
                &lt;quote date=&quot;8/6/2007&quot; open=&quot;38.71&quot; close=&quot;39.38&quot; /&gt;
                &lt;quote date=&quot;8/3/2007&quot; open=&quot;39.47&quot; close=&quot;38.75&quot; /&gt;
                &lt;quote date=&quot;8/2/2007&quot; open=&quot;39.4&quot; close=&quot;39.52&quot; /&gt;
                &lt;quote date=&quot;8/1/2007&quot; open=&quot;40.29&quot; close=&quot;39.58&quot; /&gt;
            &lt;/mx:XMLList&gt;
        &lt;/mx:source&gt;
    &lt;/mx:XMLListCollection&gt;

    &lt;mx:Array id=&quot;seriesFilterArr&quot; /&gt;

    &lt;mx:ApplicationControlBar dock=&quot;true&quot;&gt;
        &lt;mx:CheckBox id=&quot;checkBox&quot;
                label=&quot;toggle series filters:&quot;
                labelPlacement=&quot;left&quot;
                selected=&quot;false&quot;
                click=&quot;checkBox_click(event);&quot; /&gt;
    &lt;/mx:ApplicationControlBar&gt;

&lt;/mx:Application&gt;
&lt;/pre&gt;

Hope that helps,
Peter</description>
		<content:encoded><![CDATA[<p>michael,</p>
<p>I think you need to set the <code>seriesFilters</code> property to an empty array and then manage the <code>filters</code> properties manually for each of the LineSeries objects.</p>
<p>Something like the following:</p>
<pre class="code">
&lt;?xml version="1.0"?&gt;
&lt;!-- <a href="http://blog.flexexamples.com/2007/11/13/removing-the-default-drop-shadow-from-a-linechart-chart-in-flex/" rel="nofollow">http://blog.flexexamples.com/2007/11/13/removing-the-default-drop-shadow-from-a-linechart-chart-in-flex/</a> --&gt;
&lt;mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
        layout="vertical"
        verticalAlign="middle"
        backgroundColor="white"
        creationComplete="init();"&gt;

    &lt;mx:Script&gt;
        &lt;![CDATA[
            import mx.charts.series.LineSeries;
            import mx.charts.AxisRenderer;
            import mx.charts.CategoryAxis;
            import mx.charts.LinearAxis;
            import mx.charts.LineChart;

            private var lineChart:LineChart;

            private function init():void {
                // vertical axis
                var linearAxis:LinearAxis = new LinearAxis();
                linearAxis.baseAtZero = false;
                linearAxis.title = "Price";

                // horizontal axis
                var categoryAxis:CategoryAxis = new CategoryAxis();
                categoryAxis.categoryField = "@date";
                categoryAxis.title = "Date";

                // horizontal axis renderer
                var axisRenderer:AxisRenderer = new AxisRenderer();
                axisRenderer.axis = categoryAxis;
                axisRenderer.setStyle("canDropLabels", true);

                // series 1
                var series1:LineSeries = new LineSeries();
                series1.yField = "@close";
                series1.displayName = "Close";
                series1.setStyle("form", "curve");
                series1.filters = [];
                // series 2
                var series2:LineSeries = new LineSeries();
                series2.yField = "@open";
                series2.displayName = "Open";
                series2.setStyle("form", "curve");
                series2.filters = [new GlowFilter()];

                lineChart = new LineChart();
                // lineChart.seriesFilters = [];
                lineChart.showDataTips = true;
                lineChart.dataProvider = dp;
                lineChart.percentWidth = 100;
                lineChart.percentHeight = 100;
                lineChart.verticalAxis = linearAxis;
                lineChart.horizontalAxis = categoryAxis;
                lineChart.horizontalAxisRenderers = [axisRenderer];
                lineChart.series = [series1, series2];
                addChild(lineChart);

                seriesFilterArr = lineChart.seriesFilters;
            }

            private function checkBox_click(evt:MouseEvent):void {
                var len:uint = lineChart.seriesFilters.length;
                if (len &gt; 0) {
                    lineChart.seriesFilters = [];
                } else {
                    lineChart.seriesFilters = seriesFilterArr;
                }
            }
        ]]&gt;
    &lt;/mx:Script&gt;

    &lt;mx:XMLListCollection id="dp"&gt;
        &lt;mx:source&gt;
            &lt;mx:XMLList&gt;
                &lt;quote date="8/27/2007" open="40.38" close="40.81" /&gt;
                &lt;quote date="8/24/2007" open="40.5" close="40.41" /&gt;
                &lt;quote date="8/23/2007" open="40.82" close="40.6" /&gt;
                &lt;quote date="8/22/2007" open="40.4" close="40.77" /&gt;
                &lt;quote date="8/21/2007" open="40.41" close="40.13" /&gt;
                &lt;quote date="8/20/2007" open="40.55" close="40.74" /&gt;
                &lt;quote date="8/17/2007" open="40.18" close="40.32" /&gt;
                &lt;quote date="8/16/2007" open="39.83" close="39.96" /&gt;
                &lt;quote date="8/15/2007" open="40.22" close="40.18" /&gt;
                &lt;quote date="8/14/2007" open="41.01" close="40.41" /&gt;
                &lt;quote date="8/13/2007" open="41" close="40.83" /&gt;
                &lt;quote date="8/10/2007" open="41.3" close="41.06" /&gt;
                &lt;quote date="8/9/2007" open="39.9" close="40.75" /&gt;
                &lt;quote date="8/8/2007" open="39.61" close="40.23" /&gt;
                &lt;quote date="8/7/2007" open="39.08" close="39.42" /&gt;
                &lt;quote date="8/6/2007" open="38.71" close="39.38" /&gt;
                &lt;quote date="8/3/2007" open="39.47" close="38.75" /&gt;
                &lt;quote date="8/2/2007" open="39.4" close="39.52" /&gt;
                &lt;quote date="8/1/2007" open="40.29" close="39.58" /&gt;
            &lt;/mx:XMLList&gt;
        &lt;/mx:source&gt;
    &lt;/mx:XMLListCollection&gt;

    &lt;mx:Array id="seriesFilterArr" /&gt;

    &lt;mx:ApplicationControlBar dock="true"&gt;
        &lt;mx:CheckBox id="checkBox"
                label="toggle series filters:"
                labelPlacement="left"
                selected="false"
                click="checkBox_click(event);" /&gt;
    &lt;/mx:ApplicationControlBar&gt;

&lt;/mx:Application&gt;
</pre>
<p>Hope that helps,<br />
Peter</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: michael</title>
		<link>http://blog.flexexamples.com/2007/11/13/removing-the-default-drop-shadow-from-a-linechart-chart-in-flex/comment-page-1/#comment-1857</link>
		<dc:creator>michael</dc:creator>
		<pubDate>Sun, 24 Feb 2008 17:54:31 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2007/11/13/removing-the-default-drop-shadow-from-a-linechart-chart-in-flex/#comment-1857</guid>
		<description>Hi, how can the shadow be removed programmatically from a lineseries?
I try to pass an empty array in the filters option, but does not seem
to work..any ideas? thanks

var s:LineSeries = new LineSeries();
s.filters = ??

thanks</description>
		<content:encoded><![CDATA[<p>Hi, how can the shadow be removed programmatically from a lineseries?<br />
I try to pass an empty array in the filters option, but does not seem<br />
to work..any ideas? thanks</p>
<p>var s:LineSeries = new LineSeries();<br />
s.filters = ??</p>
<p>thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: peterd</title>
		<link>http://blog.flexexamples.com/2007/11/13/removing-the-default-drop-shadow-from-a-linechart-chart-in-flex/comment-page-1/#comment-1854</link>
		<dc:creator>peterd</dc:creator>
		<pubDate>Wed, 12 Dec 2007 21:19:27 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2007/11/13/removing-the-default-drop-shadow-from-a-linechart-chart-in-flex/#comment-1854</guid>
		<description>Sree,

Try toggling the &quot;toggle series filters&quot; checkbox in the upper-left corner to enable/disable the drop shadow. Heh, I had to actually double-check the entry title and reread my own code. For a minute I thought I had uploaded the wrong SWF.

Peter</description>
		<content:encoded><![CDATA[<p>Sree,</p>
<p>Try toggling the &#8220;toggle series filters&#8221; checkbox in the upper-left corner to enable/disable the drop shadow. Heh, I had to actually double-check the entry title and reread my own code. For a minute I thought I had uploaded the wrong SWF.</p>
<p>Peter</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sree</title>
		<link>http://blog.flexexamples.com/2007/11/13/removing-the-default-drop-shadow-from-a-linechart-chart-in-flex/comment-page-1/#comment-1855</link>
		<dc:creator>Sree</dc:creator>
		<pubDate>Wed, 12 Dec 2007 11:21:36 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2007/11/13/removing-the-default-drop-shadow-from-a-linechart-chart-in-flex/#comment-1855</guid>
		<description>The example that you have displayed still shows the dropShadow ... is this a player bug?</description>
		<content:encoded><![CDATA[<p>The example that you have displayed still shows the dropShadow &#8230; is this a player bug?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
