<?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>Flex Examples &#187; canDropLabels</title>
	<atom:link href="http://blog.flexexamples.com/tag/candroplabels/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.flexexamples.com</link>
	<description>Just a bunch of Adobe Flex Examples</description>
	<lastBuildDate>Wed, 26 Jan 2011 18:09:51 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Dropping labels in a Flex Chart</title>
		<link>http://blog.flexexamples.com/2007/10/16/dropping-labels-in-a-flex-chart/</link>
		<comments>http://blog.flexexamples.com/2007/10/16/dropping-labels-in-a-flex-chart/#comments</comments>
		<pubDate>Wed, 17 Oct 2007 01:38:44 +0000</pubDate>
		<dc:creator>Peter deHaan</dc:creator>
				<category><![CDATA[Charting]]></category>
		<category><![CDATA[HLOCChart]]></category>
		<category><![CDATA[canDropLabels]]></category>

		<guid isPermaLink="false">http://blog.flexexamples.com/2007/10/16/dropping-labels-in-a-flex-chart/</guid>
		<description><![CDATA[<p>In a slightly modified version of a previous example (<a href="http://blog.flexexamples.com/2007/08/27/charting-in-flex-builder-3-public-beta-1-edition/">&#8220;Charting in Flex Builder 3 (public beta 1 edition)&#8221;</a> &#8212; hooray for recycling!), this time we look at removing some of the crowded labels along the horizontal axis by setting the canDropLabels style.</p> <p>Full code after the jump.</p> <p></p> <p class="download"><a href="http://blog.flexexamples.com/wp-content/uploads/BarChart_canDropLabels_test/main.mxml">View MXML</a></p> &#60;?xml version="1.0"?&#62; [...]]]></description>
			<content:encoded><![CDATA[<p>In a slightly modified version of a previous example (<a href="http://blog.flexexamples.com/2007/08/27/charting-in-flex-builder-3-public-beta-1-edition/">&#8220;Charting in Flex Builder 3 (public beta 1 edition)&#8221;</a> &#8212; hooray for recycling!), this time we look at removing some of the crowded labels along the horizontal axis by setting the <code>canDropLabels</code> style.</p>
<p>Full code after the jump.</p>
<p><span id="more-239"></span></p>
<p class="download"><a href="http://blog.flexexamples.com/wp-content/uploads/BarChart_canDropLabels_test/main.mxml">View MXML</a></p>
<pre class="code">
&lt;?xml version="1.0"?&gt;
&lt;!-- http://blog.flexexamples.com/2007/10/16/dropping-labels-in-a-flex-chart/ --&gt;
&lt;mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
        layout="vertical"
        verticalAlign="middle"
        backgroundColor="white"&gt;

    &lt;mx:XML id="quotesXML" source="adbe.xml" format="e4x" /&gt;
    &lt;mx:XMLListCollection id="adbe" source="{quotesXML.quote}" /&gt;

    &lt;mx:String id="ADBE_YAHOO"&gt;http://finance.yahoo.com/q?d=t&amp;s=ADBE&lt;/mx:String&gt;

    &lt;mx:ApplicationControlBar dock="true"&gt;
        &lt;mx:CheckBox id="checkBox"
                label="canDropLabels:"
                labelPlacement="left" /&gt;
    &lt;/mx:ApplicationControlBar&gt;

    &lt;mx:LinkButton
            label="ADBE"
            click="navigateToURL(new URLRequest(ADBE_YAHOO))"
            fontSize="14"
            fontWeight="bold" /&gt;

    &lt;mx:HLOCChart id="hlocChart"
            showDataTips="true"
            dataProvider="{adbe}"
            width="100%"
            height="100%"&gt;

        &lt;!-- vertical axis --&gt;
        &lt;mx:verticalAxis&gt;
            &lt;mx:LinearAxis baseAtZero="false" title="Price" /&gt;
        &lt;/mx:verticalAxis&gt;

        &lt;!-- horizontal axis --&gt;
        &lt;mx:horizontalAxis&gt;
            &lt;mx:CategoryAxis categoryField="@date" title="Date" /&gt;
        &lt;/mx:horizontalAxis&gt;

        &lt;!-- horizontal axis renderer --&gt;
        &lt;mx:horizontalAxisRenderer&gt;
            &lt;mx:AxisRenderer canDropLabels="{checkBox.selected}" /&gt;
        &lt;/mx:horizontalAxisRenderer&gt;

        &lt;!-- series --&gt;
        &lt;mx:series&gt;
            &lt;mx:HLOCSeries id="series1"
                    highField="@high"
                    lowField="@low"
                    openField="@open"
                    closeField="@close"/&gt;
        &lt;/mx:series&gt;
    &lt;/mx:HLOCChart&gt;

&lt;/mx:Application&gt;
</pre>
<p class="information"><a href="http://blog.flexexamples.com/wp-content/uploads/BarChart_canDropLabels_test/bin/srcview/index.html">View source</a> is enabled in the following example.</p>
<p><iframe src="http://blog.flexexamples.com/wp-content/uploads/BarChart_canDropLabels_test/bin/main.html" width="100%" height="400"></iframe></p>
<div class="evernoteSiteMemory"><a href="javascript:" onclick="Evernote.doClip({title: 'Dropping labels in a Flex Chart on FlexExamples.com',url: 'http://blog.flexexamples.com/2007/10/16/dropping-labels-in-a-flex-chart/',contentID: 'post-239',code: 'Pete9667',suggestNotebook: 'FlexExamples',suggestTags: 'canDropLabels',providerName: 'FlexExamples.com',styling: 'text' });return false" class="evernoteSiteMemoryLink"><img src="http://static.evernote.com/article-clipper-remember.png" class="evernoteSiteMemoryButton" />
				</a>				<div class="evernoteSiteMemoryClear">&nbsp;</div>
</div>]]></content:encoded>
			<wfw:commentRss>http://blog.flexexamples.com/2007/10/16/dropping-labels-in-a-flex-chart/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
	</channel>
</rss>

