This got answered the main adobe forum.  There’s a bug where the charts use 
TextField’s htmltext for measuring and the “<“ messes up.


On 8/15/11 4:42 PM, "michael_reg...@dell.com" <michael_reg...@dell.com> wrote:






Try:

{Month:"&lt;Jan", Profit:2000, Expenses:1500},



Michael J. Regert

Please consider the environment before printing this email.

Confidentiality Notice | This e-mail message, including any attachments, is for 
the sole use of the intended recipient(s) and may contain confidential or 
proprietary information. Any unauthorized review, use, disclosure or 
distribution is prohibited. If you are not the intended recipient, immediately 
contact the sender by reply e-mail and destroy all copies of the original 
message.



!

From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf 
Of jimi_prajapati
Sent: Sunday, August 14, 2011 1:01 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Problem with showing less then sign as axis label



<?xml version="1.0"?>
<!-- charts/GridLinesBothInternal.mxml -->
<s:Application
xmlns:fx="http://ns.adobe.com/mxml/2009";
xmlns:mx="library://ns.adobe.com/flex/mx"
xmlns:s="library://ns.adobe.com/flex/spark"
height="600">

<fx:Declarations>

<fx:Array id="bge"! ;>
<mx:GridLines gridDirection="both"/>
</fx:Array>
</fx:Declarations>

<fx:Script>
<![CDATA[
import mx.collections.ArrayCollection;
[Bindable]
public var expenses:ArrayCollection = new ArrayCollection([
{Month:"<Jan", Profit:2000, Expenses:1500},
{Month:"Feb", Profit:1000, Expenses:200},
{Month:"Mar", Profit:1500, Expenses:500}
]);
]]>
</fx:Script>

<s:layout>
<s:VerticalLayout/>
</s:layout>

<s:Panel title="Column Chart">
<s:layout>
<s:VerticalLayout/>
</s:layout>
<mx:ColumnChart id="myChart"
showDataTips="true"
dataProvider="{expenses}"
backgroundElements="{bge}"
>
<mx:horizontalAxis>
<mx:CategoryAxis
dataProvider="{expenses}"
categoryField="Month"
/>
</! mx:horizontalAxis>
<mx:series>
<mx:ColumnSer! ies
xField="Month"
yField="Profit"
displayName="Profit"
/>
<mx:ColumnSeries
xField="Month"
yField="Expenses"
displayName="Expenses"
/>
</mx:series>
</mx:ColumnChart>
<mx:Legend dataProvider="{myChart}"/>
</s:Panel>
</s:Application>






--
Alex Harui
Flex SDK Team
Adobe System, Inc.
http://blogs.adobe.com/aharui

Reply via email to