<?xml version="1.0"?>

<!-- Simple example to demonstrate the ColumnChart control. -->

<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml";>

<mx:Script>

<![CDATA[

*import* mx.collections.ArrayCollection;

[*Bindable*]

*private* *var* medalsAC:ArrayCollection = *new* ArrayCollection( [

{ Country: *"USA"*, Gold: 35, Silver:39, Bronze: 29 },

{ Country: *"China"*, Gold: 32, Silver:17, Bronze: 14 },

{ Country: *"Russia"*, Gold: 27, Silver:27, Bronze: 38 } ]);

]]>

</mx:Script>

<!-- Define custom colors for use as fills. -->

<mx:SolidColor id="sc1" color="yellow" alpha=".8"/>

<mx:SolidColor id="sc2" color="0xCCCCCC" alpha=".6"/>

<mx:SolidColor id="sc3" color="0xFFCC66" alpha=".6"/>

<!-- Define custom Strokes for the columns. -->

<mx:Stroke id="s1" color="yellow" weight="2"/>

<mx:Stroke id="s2" color="0xCCCCCC" weight="2"/>

<mx:Stroke id="s3" color="0xFFCC66" weight="2"/>

<mx:Panel title="ColumnChart and BarChart Controls Example"

height="100%" width="100%" layout="horizontal">

<mx:ColumnChart id="column"

height="100%"

width="50%"

paddingLeft="5"

paddingRight="5"

showDataTips="true"

dataProvider="{medalsAC}" >

<mx:horizontalAxis>

<mx:CategoryAxis categoryField="Country"/>

</mx:horizontalAxis>

<mx:series>

<mx:ColumnSeries

xField="Country"

yField="Gold"

displayName="Gold"

fill="{sc1}"

stroke="{s1}"/>

<mx:ColumnSeries

xField="Country"

yField="Silver"

displayName="Silver"

fill="{sc2}"

stroke="{s2}"/>

<mx:ColumnSeries

xField="Country"

yField="Bronze"

displayName="Bronze"

fill="{sc3}"

stroke="{s3}"/>

</mx:series>

</mx:ColumnChart>

<mx:Legend dataProvider="{column}"/>

</mx:Panel>

</mx:Application>


On Sun, Mar 29, 2009 at 9:21 PM, pankaj munjal <[email protected]
> wrote:

> we do have width property in the chart to make each column to fix widht.
> Hope it will be helpfull  Pls let me know if you need further help
>
>
> On Wed, Mar 25, 2009 at 3:43 PM, Jignesh Wala <[email protected]>wrote:
>
>> Hi Guys,
>>
>> I need to change the label width dynamically on Column charts depends on
>> series width if it is too short then it will truncate the label.
>>
>> like if you have two series which will have only two label(first one is
>> too short say "this is test" and second on is "The Quick Brown Fox jumps
>> over the lazy dog" then it will show both label without truncate because the
>> chart area is enough to display both label. here if chart area is less then
>> truncate the second label depends on series length.
>>
>> Thanks in Advance.
>> --
>> Jignesh.
>>
>>
>>
>
> >
>


-- 
Thanks & Regards,

Jagan Mady's

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Flex 
India Community" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/flex_india?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to