<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.2.1" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: Removing the default drop shadow from a LineChart chart in Flex</title>
	<link>http://blog.flexexamples.com/2007/11/13/removing-the-default-drop-shadow-from-a-linechart-chart-in-flex/</link>
	<description>A bunch of examples for Adobe Flex and ActionScript</description>
	<pubDate>Tue, 06 Jan 2009 12:27:59 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.2.1</generator>

	<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-7159</link>
		<author>peterd</author>
		<pubDate>Mon, 25 Feb 2008 07:07:38 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2007/11/13/removing-the-default-drop-shadow-from-a-linechart-chart-in-flex/#comment-7159</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="code"&gt;
&#60;?xml version="1.0"?&#62;
&#60;!-- http://blog.flexexamples.com/2007/11/13/removing-the-default-drop-shadow-from-a-linechart-chart-in-flex/ --&#62;
&#60;mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
        layout="vertical"
        verticalAlign="middle"
        backgroundColor="white"
        creationComplete="init();"&#62;

    &#60;mx:Script&#62;
        &#60;![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 &#62; 0) {
                    lineChart.seriesFilters = [];
                } else {
                    lineChart.seriesFilters = seriesFilterArr;
                }
            }
        ]]&#62;
    &#60;/mx:Script&#62;

    &#60;mx:XMLListCollection id="dp"&#62;
        &#60;mx:source&#62;
            &#60;mx:XMLList&#62;
                &#60;quote date="8/27/2007" open="40.38" close="40.81" /&#62;
                &#60;quote date="8/24/2007" open="40.5" close="40.41" /&#62;
                &#60;quote date="8/23/2007" open="40.82" close="40.6" /&#62;
                &#60;quote date="8/22/2007" open="40.4" close="40.77" /&#62;
                &#60;quote date="8/21/2007" open="40.41" close="40.13" /&#62;
                &#60;quote date="8/20/2007" open="40.55" close="40.74" /&#62;
                &#60;quote date="8/17/2007" open="40.18" close="40.32" /&#62;
                &#60;quote date="8/16/2007" open="39.83" close="39.96" /&#62;
                &#60;quote date="8/15/2007" open="40.22" close="40.18" /&#62;
                &#60;quote date="8/14/2007" open="41.01" close="40.41" /&#62;
                &#60;quote date="8/13/2007" open="41" close="40.83" /&#62;
                &#60;quote date="8/10/2007" open="41.3" close="41.06" /&#62;
                &#60;quote date="8/9/2007" open="39.9" close="40.75" /&#62;
                &#60;quote date="8/8/2007" open="39.61" close="40.23" /&#62;
                &#60;quote date="8/7/2007" open="39.08" close="39.42" /&#62;
                &#60;quote date="8/6/2007" open="38.71" close="39.38" /&#62;
                &#60;quote date="8/3/2007" open="39.47" close="38.75" /&#62;
                &#60;quote date="8/2/2007" open="39.4" close="39.52" /&#62;
                &#60;quote date="8/1/2007" open="40.29" close="39.58" /&#62;
            &#60;/mx:XMLList&#62;
        &#60;/mx:source&#62;
    &#60;/mx:XMLListCollection&#62;

    &#60;mx:Array id="seriesFilterArr" /&#62;

    &#60;mx:ApplicationControlBar dock="true"&#62;
        &#60;mx:CheckBox id="checkBox"
                label="toggle series filters:"
                labelPlacement="left"
                selected="false"
                click="checkBox_click(event);" /&#62;
    &#60;/mx:ApplicationControlBar&#62;

&#60;/mx:Application&#62;
&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> &#8211;&gt;
&lt;mx:Application xmlns:mx=&#8221;http://www.adobe.com/2006/mxml&#8221;
        layout=&#8221;vertical&#8221;
        verticalAlign=&#8221;middle&#8221;
        backgroundColor=&#8221;white&#8221;
        creationComplete=&#8221;init();&#8221;&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 = &#8220;Price&#8221;;

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

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

                // series 1
                var series1:LineSeries = new LineSeries();
                series1.yField = &#8220;@close&#8221;;
                series1.displayName = &#8220;Close&#8221;;
                series1.setStyle(&#8221;form&#8221;, &#8220;curve&#8221;);
                series1.filters = [];
                // series 2
                var series2:LineSeries = new LineSeries();
                series2.yField = &#8220;@open&#8221;;
                series2.displayName = &#8220;Open&#8221;;
                series2.setStyle(&#8221;form&#8221;, &#8220;curve&#8221;);
                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=&#8221;dp&#8221;&gt;
        &lt;mx:source&gt;
            &lt;mx:XMLList&gt;
                &lt;quote date=&#8221;8/27/2007&#8243; open=&#8221;40.38&#8243; close=&#8221;40.81&#8243; /&gt;
                &lt;quote date=&#8221;8/24/2007&#8243; open=&#8221;40.5&#8243; close=&#8221;40.41&#8243; /&gt;
                &lt;quote date=&#8221;8/23/2007&#8243; open=&#8221;40.82&#8243; close=&#8221;40.6&#8243; /&gt;
                &lt;quote date=&#8221;8/22/2007&#8243; open=&#8221;40.4&#8243; close=&#8221;40.77&#8243; /&gt;
                &lt;quote date=&#8221;8/21/2007&#8243; open=&#8221;40.41&#8243; close=&#8221;40.13&#8243; /&gt;
                &lt;quote date=&#8221;8/20/2007&#8243; open=&#8221;40.55&#8243; close=&#8221;40.74&#8243; /&gt;
                &lt;quote date=&#8221;8/17/2007&#8243; open=&#8221;40.18&#8243; close=&#8221;40.32&#8243; /&gt;
                &lt;quote date=&#8221;8/16/2007&#8243; open=&#8221;39.83&#8243; close=&#8221;39.96&#8243; /&gt;
                &lt;quote date=&#8221;8/15/2007&#8243; open=&#8221;40.22&#8243; close=&#8221;40.18&#8243; /&gt;
                &lt;quote date=&#8221;8/14/2007&#8243; open=&#8221;41.01&#8243; close=&#8221;40.41&#8243; /&gt;
                &lt;quote date=&#8221;8/13/2007&#8243; open=&#8221;41&#8243; close=&#8221;40.83&#8243; /&gt;
                &lt;quote date=&#8221;8/10/2007&#8243; open=&#8221;41.3&#8243; close=&#8221;41.06&#8243; /&gt;
                &lt;quote date=&#8221;8/9/2007&#8243; open=&#8221;39.9&#8243; close=&#8221;40.75&#8243; /&gt;
                &lt;quote date=&#8221;8/8/2007&#8243; open=&#8221;39.61&#8243; close=&#8221;40.23&#8243; /&gt;
                &lt;quote date=&#8221;8/7/2007&#8243; open=&#8221;39.08&#8243; close=&#8221;39.42&#8243; /&gt;
                &lt;quote date=&#8221;8/6/2007&#8243; open=&#8221;38.71&#8243; close=&#8221;39.38&#8243; /&gt;
                &lt;quote date=&#8221;8/3/2007&#8243; open=&#8221;39.47&#8243; close=&#8221;38.75&#8243; /&gt;
                &lt;quote date=&#8221;8/2/2007&#8243; open=&#8221;39.4&#8243; close=&#8221;39.52&#8243; /&gt;
                &lt;quote date=&#8221;8/1/2007&#8243; open=&#8221;40.29&#8243; close=&#8221;39.58&#8243; /&gt;
            &lt;/mx:XMLList&gt;
        &lt;/mx:source&gt;
    &lt;/mx:XMLListCollection&gt;

    &lt;mx:Array id=&#8221;seriesFilterArr&#8221; /&gt;

    &lt;mx:ApplicationControlBar dock=&#8221;true&#8221;&gt;
        &lt;mx:CheckBox id=&#8221;checkBox&#8221;
                label=&#8221;toggle series filters:&#8221;
                labelPlacement=&#8221;left&#8221;
                selected=&#8221;false&#8221;
                click=&#8221;checkBox_click(event);&#8221; /&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-7154</link>
		<author>michael</author>
		<pubDate>Sun, 24 Feb 2008 17:54:31 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2007/11/13/removing-the-default-drop-shadow-from-a-linechart-chart-in-flex/#comment-7154</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-5003</link>
		<author>peterd</author>
		<pubDate>Wed, 12 Dec 2007 21:19:27 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2007/11/13/removing-the-default-drop-shadow-from-a-linechart-chart-in-flex/#comment-5003</guid>
		<description>Sree,

Try toggling the "toggle series filters" 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-4983</link>
		<author>Sree</author>
		<pubDate>Wed, 12 Dec 2007 11:21:36 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2007/11/13/removing-the-default-drop-shadow-from-a-linechart-chart-in-flex/#comment-4983</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>
