0 Replies Latest reply on May 8, 2008 7:51 AM by smonika15

    strok property in column chart

    smonika15
      In my application, there is a column chart. if the user click on any bar of the histogram(column chart), that time, stroke property will be set in different colour.
      <mx:ColumnSeries id="series" xField="xxx" yField="yyy" >
      if i add strok property in above line then it always shows the strok in the column chart.
      but i need it dynamiccaly. like
      <mx:ColumnChart id="chart" dataProvider="{xyz}"
      name="Histogram Chart" width="100%"
      selectionMode="multiple"
      height="100%" toolTip="{ccToolTip}" showDataTips="true"
      itemClick="histogramBarClick(event)"
      >

      I want to set the stroke on the click event.
      I tried in the function histogramBarClick(event){

      ColumnChart.ColumnSeries .setStyle("stroke",s3);

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

      there is no compile time error but when i run this the i m getting
      Error #1010: A term is undefined and has no properties.

      can any body help me?

      Thanks