1 Reply Latest reply on Dec 12, 2011 3:38 AM by RohithreddyM

    Hand Cursor over Bar in Bar Chart

    RohithreddyM

      Hi,   HandCursor is not appearing over bar in bar chart.

        • 1. Re: Hand Cursor over Bar in Bar Chart
          RohithreddyM Level 1

          <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>

           

             

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

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

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

           

                 

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

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

           

                   <mx:BarChart id="bar" height="100%" width="45%"

                      paddingLeft="5" paddingRight="5"

                      showDataTips="true" dataProvider="{medalsAC}">

                         

                      <mx:verticalAxis>

                          <mx:CategoryAxis categoryField="Country"/>

                      </mx:verticalAxis>

                         

                      <mx:series>

                          <mx:BarSeries

                              yField="Country"

                              xField="Gold"

                              displayName="Gold"

                              fill="{sc1}"

                               labelPosition="inside" mouseChildren="false" buttonMode="true" useHandCursor="true"

                          />

                          <mx:BarSeries

                              yField="Country"

                              xField="Silver"

                              displayName="Silver"

                              fill="{sc2}" mouseChildren="false" buttonMode="true" useHandCursor="true" labelPosition="none"

                          />

                          <mx:BarSeries

                              yField="Country"

                              xField="Bronze"

                              displayName="Bronze"

                              fill="{sc3}" labelPosition="outside" mouseChildren="false" buttonMode="true" useHandCursor="true"

                          />

                      </mx:series>

                  </mx:BarChart>

           

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

           

              </mx:Panel>

          </mx:Application>