<?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: Creating a custom label function on a Flex LineChart control&#8217;s category axis</title>
	<link>http://blog.flexexamples.com/2007/11/16/creating-a-custom-label-function-on-a-flex-linechart-controls-category-axis/</link>
	<description>A bunch of examples for Adobe Flex and ActionScript</description>
	<pubDate>Tue, 06 Jan 2009 03:19:07 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.2.1</generator>

	<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-15389</link>
		<author>GT</author>
		<pubDate>Mon, 08 Sep 2008 15:08:26 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2007/11/16/creating-a-custom-label-function-on-a-flex-linechart-controls-category-axis/#comment-15389</guid>
		<description>Another example that helps me toward a goal... this time I'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've managed to do is to render ALL dates as MMM-YY (that was pretty easy), but the 'dropping' 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'm trying to find a solution and will post the outcome here if I do - although doubtless I'll be re-inventing a wheel that I haven'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 - that is,  - 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 - 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>
