<?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: Creating a custom label function on a Flex LineChart control&#8217;s category axis</title>
	<atom:link href="http://blog.flexexamples.com/2007/11/16/creating-a-custom-label-function-on-a-flex-linechart-controls-category-axis/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.flexexamples.com/2007/11/16/creating-a-custom-label-function-on-a-flex-linechart-controls-category-axis/</link>
	<description>Just a bunch of Adobe Flex Examples</description>
	<lastBuildDate>Sun, 12 Feb 2012 19:26:49 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Gen</title>
		<link>http://blog.flexexamples.com/2007/11/16/creating-a-custom-label-function-on-a-flex-linechart-controls-category-axis/comment-page-1/#comment-10158</link>
		<dc:creator>Gen</dc:creator>
		<pubDate>Mon, 14 Nov 2011 01:28:22 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2007/11/16/creating-a-custom-label-function-on-a-flex-linechart-controls-category-axis/#comment-10158</guid>
		<description>Hi,

I have a question that is related to axis labels, I am looking at suppressing the labels being shown on the category axis, eg I want to sow only every x label, eg every 2nd, or 3rd etc, whne the labels get so many. I tried overriding the reduceLabels function of the catagoryAxis class, and just inserting the labels if they are in the position desired, but when I do this I seem to loose the tick marks that comes with the labels and I have no idea how to get them back. 

If I trick it and still add all the labels, but for the position that is not desired I replace the label with a blank value, I get the tick marks, but the labels are so small as it is still trying to fit everything in the available space of the line axis.

Just wondering if you gus can provide some tips for me in achieving what I want to do.

Cheers,
Gen</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I have a question that is related to axis labels, I am looking at suppressing the labels being shown on the category axis, eg I want to sow only every x label, eg every 2nd, or 3rd etc, whne the labels get so many. I tried overriding the reduceLabels function of the catagoryAxis class, and just inserting the labels if they are in the position desired, but when I do this I seem to loose the tick marks that comes with the labels and I have no idea how to get them back. </p>
<p>If I trick it and still add all the labels, but for the position that is not desired I replace the label with a blank value, I get the tick marks, but the labels are so small as it is still trying to fit everything in the available space of the line axis.</p>
<p>Just wondering if you gus can provide some tips for me in achieving what I want to do.</p>
<p>Cheers,<br />
Gen</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ali</title>
		<link>http://blog.flexexamples.com/2007/11/16/creating-a-custom-label-function-on-a-flex-linechart-controls-category-axis/comment-page-1/#comment-7732</link>
		<dc:creator>Ali</dc:creator>
		<pubDate>Mon, 17 May 2010 20:15:55 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2007/11/16/creating-a-custom-label-function-on-a-flex-linechart-controls-category-axis/#comment-7732</guid>
		<description>you have just saved my life! 
thank you soooooo much! 
cheers!</description>
		<content:encoded><![CDATA[<p>you have just saved my life!<br />
thank you soooooo much!<br />
cheers!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter deHaan</title>
		<link>http://blog.flexexamples.com/2007/11/16/creating-a-custom-label-function-on-a-flex-linechart-controls-category-axis/comment-page-1/#comment-1904</link>
		<dc:creator>Peter deHaan</dc:creator>
		<pubDate>Tue, 28 Apr 2009 20:45:36 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2007/11/16/creating-a-custom-label-function-on-a-flex-linechart-controls-category-axis/#comment-1904</guid>
		<description>Anton,

You can find the latest Flex 3.x documentation at http://livedocs.adobe.com/flex/3/langref/ and http://livedocs.adobe.com/flex/3/html/

Peter</description>
		<content:encoded><![CDATA[<p>Anton,</p>
<p>You can find the latest Flex 3.x documentation at <a href="http://livedocs.adobe.com/flex/3/langref/" rel="nofollow">http://livedocs.adobe.com/flex/3/langref/</a> and <a href="http://livedocs.adobe.com/flex/3/html/" rel="nofollow">http://livedocs.adobe.com/flex/3/html/</a></p>
<p>Peter</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anton</title>
		<link>http://blog.flexexamples.com/2007/11/16/creating-a-custom-label-function-on-a-flex-linechart-controls-category-axis/comment-page-1/#comment-1905</link>
		<dc:creator>Anton</dc:creator>
		<pubDate>Tue, 28 Apr 2009 07:30:58 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2007/11/16/creating-a-custom-label-function-on-a-flex-linechart-controls-category-axis/#comment-1905</guid>
		<description>Hi, thanks for that great example.

I was looking at another labelfunction example that you posted (for a pie chart) and I see that this label function has different parameters.

Where can I find documentation on the label functions for the different flex charts? Or how did you figure out what parameters are required?

Thanks</description>
		<content:encoded><![CDATA[<p>Hi, thanks for that great example.</p>
<p>I was looking at another labelfunction example that you posted (for a pie chart) and I see that this label function has different parameters.</p>
<p>Where can I find documentation on the label functions for the different flex charts? Or how did you figure out what parameters are required?</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: GT</title>
		<link>http://blog.flexexamples.com/2007/11/16/creating-a-custom-label-function-on-a-flex-linechart-controls-category-axis/comment-page-1/#comment-1906</link>
		<dc:creator>GT</dc:creator>
		<pubDate>Mon, 08 Sep 2008 15:08:26 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2007/11/16/creating-a-custom-label-function-on-a-flex-linechart-controls-category-axis/#comment-1906</guid>
		<description>Another example that helps me toward a goal... this time I&#039;m trying to get an x-Axis to suppress all but the first date of a month, and then to render that date as MMM-YY.

Initially I did it in PHP before bringing the data in, by fetching all dates as MMM-YY then writing empty tags - that is,  - in the XML if date[x]==date[x-1]).

Then I found that if you have a chart in a resizable box in Flex, the x-Axis auto resizing throws an error if there are null x-Values with non-null Y values. Bummer.

At present what I&#039;ve managed to do is to render ALL dates as MMM-YY (that was pretty easy), but the &#039;dropping&#039; function to getrid of crowding seems arbitrary. Note how in the example above, the break between label markers is not always six days (Aug-13 to Aug-7 is only 4 days)... and plus six days s an awkward outcome in any case.

If there was a way to make that fixed at a week (or two weeks, or a month) that would be teh.awesome. I&#039;m trying to find a solution and will post the outcome here if I do - although doubtless I&#039;ll be re-inventing a wheel that I haven&#039;t yet found on the Google.

Cheers


GT
France</description>
		<content:encoded><![CDATA[<p>Another example that helps me toward a goal&#8230; this time I&#8217;m trying to get an x-Axis to suppress all but the first date of a month, and then to render that date as MMM-YY.</p>
<p>Initially I did it in PHP before bringing the data in, by fetching all dates as MMM-YY then writing empty tags &#8211; that is,  &#8211; in the XML if date[x]==date[x-1]).</p>
<p>Then I found that if you have a chart in a resizable box in Flex, the x-Axis auto resizing throws an error if there are null x-Values with non-null Y values. Bummer.</p>
<p>At present what I&#8217;ve managed to do is to render ALL dates as MMM-YY (that was pretty easy), but the &#8216;dropping&#8217; function to getrid of crowding seems arbitrary. Note how in the example above, the break between label markers is not always six days (Aug-13 to Aug-7 is only 4 days)&#8230; and plus six days s an awkward outcome in any case.</p>
<p>If there was a way to make that fixed at a week (or two weeks, or a month) that would be teh.awesome. I&#8217;m trying to find a solution and will post the outcome here if I do &#8211; although doubtless I&#8217;ll be re-inventing a wheel that I haven&#8217;t yet found on the Google.</p>
<p>Cheers</p>
<p>GT<br />
France</p>
]]></content:encoded>
	</item>
</channel>
</rss>

