Strok property in column chart

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

Are you going to show the bar going past the maximum value?
If not, then you should change the Y value when entered into the array to the maximum value allowed. i.e.
if(itemYValue > maxAllowedValue) {
     itemYValue = maxAllowedValue;
Where maxAllowedValue is a variable you set on the application to control the maximum value for the chart.
This is assuming that you are loading the values into an Array before updating the chart dataprovider with that array.

Similar Messages

  • Is Stacked Bar/Column chart Supports Multiseries..?

    Hi All
    Is Stacked Bar/Column chart Supports Multiseries..?
    I was trying to build a Stacked Bar chart .And add a line
    series to it But when i run this I'm getting an error
    like this
    "ReferenceError: Error #1056: Cannot create property offset
    on mx.charts.series.LineSeries."
    Here is My Code
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    layout="absolute">
    <mx:Script>
    <![CDATA[
    import mx.collections.ArrayCollection;
    [Bindable]
    public var netPrByQtrData:ArrayCollection=new
    ArrayCollection
    {quarter:"Q4 05", bottom:88.89, middle:11.11, top:0.00,
    netPromoter:-88.89},
    {quarter:"Q1 06", bottom:80.00, middle:10.00, top:10.00,
    netPromoter:-70.00},
    {quarter:"Q2 06", bottom:16.67, middle:50.00, top:33.33,
    netPromoter:16.67},
    {quarter:"Q3 06", bottom:28.57, middle:28.57, top:42.86,
    netPromoter:14.29},
    {quarter:"Q4 06", bottom:80.00, middle:20.00, top:0.00,
    netPromoter:-80.00},
    {quarter:"Q1 07", bottom:80.00, middle:0.00, top:20.00,
    netPromoter:-60.00},
    {quarter:"Q2 07", bottom:60.00, middle:20.00, top:20.00,
    netPromoter:-40.00},
    {quarter:"Q3 07", bottom:80.00, middle:0.00, top:20.00,
    netPromoter:-60.00}
    ]]>
    </mx:Script>
    <mx:Panel title="Net Promoter By Quarters" width="500"
    height="350" x="31" y="34">
    <mx:ColumnChart id="mychart"
    dataProvider="{netPrByQtrData}"
    showDataTips="true"
    height="250"
    width="450" type="stacked">
    <mx:horizontalAxis>
    <mx:CategoryAxis categoryField="quarter"/>
    </mx:horizontalAxis>
    <mx:series>
    <mx:ColumnSeries
    yField="bottom"
    xField="quarter"
    displayName="Bottom" >
    </mx:ColumnSeries>
    <mx:ColumnSeries
    yField="middle"
    xField="quarter"
    displayName="Middle" >
    </mx:ColumnSeries>
    <mx:ColumnSeries
    yField="top"
    xField="quarter"
    displayName="Top" >
    </mx:ColumnSeries>
    <mx:LineSeries
    yField="netPromoter"
    xField="quarter"
    displayName="Net Promoter" >
    </mx:LineSeries>
    </mx:series>
    </mx:ColumnChart>
    <mx:Legend dataProvider="{mychart}"
    direction="horizontal"/>
    </mx:Panel>
    </mx:Application>
    If I omit type="stacked" from
    <mx:ColumnChart id="mychart"
    dataProvider="{netPrByQtrData}"
    showDataTips="true"
    height="250"
    width="450" type="stacked">
    The code will work perfectly..But unfortunately its not a
    Stacked Chart...
    Is there any solution for this....Please reply your valuable
    suggestions ASAP.....
    Thanks in Advance..
    Subin

    Hello,
    In Flex Builder 4 and Above.
    For composite charts with Multiple column series and line series,
    Remove type = “stacked” property from Column Chart.
    and Add columnset like.
    <mx:series>
        <mx:ColumnSet type="stacked">
           <mx:ColumnSeries yField="aSales" displayName="A Sales" />
           <mx:ColumnSeries yField="bSales" displayName="B Sales" />
        </mx:ColumnSet>
        <mx:LineSeries yField="total" displayName="Total Sales"/>
    </mx:series>
    Cheers,
    SaM.

  • Column chart solid color stroke with fillfunction

    Hi,
    in a column chart I am using the fillfunction,
    to customize the color of each column.
    Now I need to modify,
    for each column also the solid color stroke,
    but I can't figure how can I do that.
    Some one can help me ?
    Thanks a lot
    Jody

    Depending on what you are trying to do, you need to either:
    create an Array with the colors
    [Bindable]
         private var warmColorsArray:Array = new Array(
            new SolidColor(0xFF0033, .5),
            new SolidColor(0xFF0066, .5),
            new SolidColor(0xFF0099, .5)
         [Bindable]
         private var coolColorsArray:Array = new Array(
            new SolidColor(0x3333CC, .5),
            new SolidColor(0x3366CC, .5),
            new SolidColor(0x3399CC, .5)
    And then just add that array to the fill parameter
    <mx:ColumnSeries
                    xField="month"
                    yField="profit"
                    displayName="Profit"
                    fills="{warmColorsArray}">
               </mx:ColumnSeries>
    Or, you need use the fillFunction to set each item individually.
    Here is the results from an example I did, in order how to do it. And I put a post on my blog explaining what I did.

  • Column chart with null data items

    I have a Column Chart with an ArrayCollection data provider.
    The data will sometimes have missing items in some "rows'. For
    example, it might look like this where the second object has no
    "Male" property:
    public var myData:ArrayCollection = new ArrayCollection([
    {School: "Priorford", All: 95, Male: 92, Female: 98},
    {School: "Giffnock", All: 87, Female: 89},
    {School: "Hastings", All: 80, Male: 78, Female: 82}
    Sometimes I get the following error:
    TypeError: Error #1009: Cannot access a property or method of
    a null object
    reference.
    at mx.charts.chartClasses::NumericAxis/mapCache()
    I'm assuming the error is because of missing data items, but
    I'm not 100% sure. Some data sets with missing items will display
    with no error. I can't see a pattern to those that don't.
    -- I can't produce the error when using a "static" data
    source set in the Flex app itself (such as the example above).
    These always display correctly, even with missing items.
    -- In the problem case, the source data comes from a MySQL
    database through a PHP script that is called with a Flex
    httpService. The returned data is parsed in Flex, and put into the
    ArrayCollection. I was suspecting that the returned data was flawed
    in some way, but the same ArrayCollection displays correctly in a
    DataGrid. The problem is only with the Chart.
    -- I can work round the problem by adding the missing
    properties and setting them to an empty value. But I don't think I
    should have to do this.
    Has anyone seen this problem, or know of any obvious thing I
    might be doing wrong.

    Thanks Arthur.
    Your first suggestion is effectively what I'm doing as a
    workaround. But it is a bit of a pain to have to account for this
    each time when displaying a chart. It's a particular problem when
    you don't know in advance what "categories" might be returned by
    the data and that have to be charted.
    My biggest concern is that this looks like a bug, and the
    fact that it seems to occur intermittently is a bit worrying. (I
    also know that eight out of ten reported "bugs" are user error,
    which is why I was wondering if anyone else had experienced this.)
    About your second suggestion, I think the interpolateValues
    property only applies to lineSeries.

  • Column chart error

    Hi All
    In my column chart I am having following error due to my axisRenderer but I
    am unable to find out the root cause of error.
    Error
    TypeError: Error #1009: Cannot access a property or method of a null object
    reference.
                at
    mx.charts::AxisRenderer/calcStaggeredSpacing()[C:\Work\flex\dmv_automation\p
    rojects\datavisualisation\src\mx\charts\AxisRenderer.as:2195]
                at
    mx.charts::AxisRenderer/calcRotationAndSpacing()[C:\Work\flex\dmv_automation
    \projects\datavisualisation\src\mx\charts\AxisRenderer.as:1586]
                at
    mx.charts::AxisRenderer/adjustGutters()[C:\Work\flex\dmv_automation\projects
    \datavisualisation\src\mx\charts\AxisRenderer.as:1326]
                at mx.charts::AxisRenderer/set
    gutters()[C:\Work\flex\dmv_automation\projects\datavisualisation\src\mx\char
    ts\AxisRenderer.as:798]
                at
    mx.charts.chartClasses::CartesianChart/updateAxisLayout()[C:\Work\flex\dmv_a
    utomation\projects\datavisualisation\src\mx\charts\chartClasses\CartesianCha
    rt.as
    :2028]
                at
    mx.charts.chartClasses::CartesianChart/updateDisplayList()[C:\Work\flex\dmv_
    automation\projects\datavisualisation\src\mx\charts\chartClasses\CartesianCh
    art.a
    s:1355]
                at mx.core::UIComponent/validateDisplayList()
                at mx.managers::LayoutManager/validateDisplayList()
                at mx.managers::LayoutManager/doPhasedInstantiation()
                at mx.managers::LayoutManager/validateNow()
                at mx.effects.effectClasses::TweenEffectInstance/onTweenEnd()
                at mx.effects.effectClasses::ResizeInstance/onTweenEnd()
                at mx.effects::Tween/endTween()
                at
    mx.effects::Tween/http://www.adobe.com/2006/flex/mx/internal::doInterval()
                at mx.effects::Tween$/timerHandler()
                at flash.utils::Timer/_timerDispatch()
                at flash.utils::Timer/tick()
    my Axis renderer
    <mx:horizontalAxis>
                      <mx:CategoryAxis id="myAxis" 
                                               categoryField="X"   />
                </mx:horizontalAxis>
                 <mx:horizontalAxisRenderers>
                      <mx:AxisRenderer
    labelRotation="{Application.application.xAxisLabelRotator.value}"
                                               axis=""/>
                 </mx:horizontalAxisRenderers>
    Any help is highly appreciable.
    With thanks and warm regards,
    Varun Bajaj

    This looks like the same problem I just encountered. Did you ever figure anything out?

  • Overlapping data when more data column chart SSRS

    Hi guys,
    In my ssrs report the column chart  display is not good when more number of datas are viewed.How to overcum this issue
    I searched more on this issue no good solution found.
    I attached screenshot for this report,
    any suggestions pls
    Thanks,
    R.B

    Hi R.B,
    I can reproduce the issue in my local environment. If there are more column data with adjacent values in the chart, the label will be overlapped due to the insufficient space. In this scenario, there are several properties you can use to try to get the labels
    to fit better. Click the data point to open the Properties Windows, then go to the SmartLabels node.
    Expand the "NoMoveDirections" node. This will give us a lot of directions that we can use to restrict the directions that the labels can move in. We can try to change directions to see if it helps.
    Try to enlarge the chart size and use the method below to adjust the column size, it will free up more space to contain the label.
    http://www.bidn.com/blogs/ChrisAlbrektson/bidn-blog/1832/ssrs-adjust-bar-chart-width
    If we want to remove the black arrow, we can refer to the following thread:
    http://social.technet.microsoft.com/Forums/en-US/e3019086-4f72-4898-ba86-2e7c97c8fae4/ssrs-series-lable-overlaping-issue?forum=sqlreportingservices
    Alternatively, we can use Tooltip property to instead of actually displaying. Type the same expression with Value field in the Tooltip property.
    Hope this helps.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • Null object reference error in Axis Renderer in Case of Stacked Column Chart

    We are trying to display a Flex Column chart (when stacked ) with single value in DataProvider but we used to get following error:
    TypeError: Error #1009: Cannot access a property or method of a null object reference.
    at mx.charts::AxisRenderer/calcStaggeredSpacing()[C:\Work\flex\dmv_automation\projects\datav isualisation\src\mx\charts\AxisRenderer.as:2195]
    at mx.charts::AxisRenderer/calcRotationAndSpacing()[C:\Work\flex\dmv_automation\projects\dat avisualisation\src\mx\charts\AxisRenderer.as:1586]
    at mx.charts::AxisRenderer/adjustGutters()[C:\Work\flex\dmv_automation\projects\datavisualis ation\src\mx\charts\AxisRenderer.as:1326]
    at mx.charts::AxisRenderer/set gutters()[C:\Work\flex\dmv_automation\projects\datavisualisation\src\mx\charts\AxisRender er.as:798]
    at mx.charts.chartClasses::CartesianChart/updateAxisLayout()[C:\Work\flex\dmv_automation\pro jects\datavisualisation\src\mx\charts\chartClasses\CartesianChart.as:2028]
    at mx.charts.chartClasses::CartesianChart/updateDisplayList()[C:\Work\flex\dmv_automation\pr ojects\datavisualisation\src\mx\charts\chartClasses\CartesianChart.as:1355]
    at mx.core::UIComponent/validateDisplayList()[C:\autobuild\galaga\frameworks\projects\framew ork\src\mx\core\UIComponent.as:6351]
    at mx.managers::LayoutManager/validateDisplayList()[C:\autobuild\galaga\frameworks\projects\ framework\src\mx\managers\LayoutManager.as:622]
    at mx.managers::LayoutManager/doPhasedInstantiation()[C:\autobuild\galaga\frameworks\project s\framework\src\mx\managers\LayoutManager.as:695]
    at Function/http://adobe.com/AS3/2006/builtin::apply()
    at mx.core::UIComponent/callLaterDispatcher2()[C:\autobuild\galaga\frameworks\projects\frame work\src\mx\core\UIComponent.as:8733]
    at mx.core::UIComponent/callLaterDispatcher()[C:\autobuild\galaga\frameworks\projects\framew ork\src\mx\core\UIComponent.as:8673]
    at flash.utils::Timer/_timerDispatch()
    at flash.utils::Timer/tick()
    We have invested so much effort and done lots of googling and also followed the work around given on https://bugs.adobe.com/jira/browse/FLEXDMV-2275 but till now, we didn't get any solution.

    I solved the issue by getting rid of the creationCompleteHandler event handlers for the KPI charts. But, since I am just days into flex development, I would be indebted if someone could explain to me why that was creating problems.

  • Problem with loading column chart in flex2

    Hi All,
    I am facing a strange problem in designing a column chart. I have a page where i have two column charts. The data providr for both the charts is same. I have an xml with three categories of values, and each chart  uses two of these with one of them being common and they are actually sorted based on one of those values. The problem here is that one chart shows proper values while the other (though shows proper values) it doesnt render it properly in the sense that the height of the columns and the value of that particular column are not consistent. What could be the issue????

    It's necessary to discard the white spaces.
    Set the ignoreWhite property to true.
    document.ignoreWhite = true;
    Regards,
    Erick Souza | ericksouza.com

  • Add Total to Stacked Column Chart on the top and another important thing is the data are from SharePoint site

    the same with the following description from another question:
    "How can I display a total on top of each column on a stacked column chart (using
    reporting services 2008)? If I use Data Labels I can display the
    values for each part of the stack on a stacked column, but I want to be display the total.
    For Example: If I have stacked column on chart with a value of 10 for the 1st stack, 20 for the 2nd stack,
    and 20 again for the 3rd stack - I want to display 50 (the SUM total) as the data label on top of the entire column..."
    and a solution for this would create a new column named SUM(category group), this can be done with data source from SQL server, but my data is from SharePoint site list. its query seems can't be changed which means I can't add a SUM column.
    what should I do with this? Can anyone give me a hand?
    thank you very much.

    Hi sophiexu,
    If we want to display a total for each column on the top of a stacked chart, we can use a matrix control to display the column total value to work around this issue.
    The following thread about how to simulate chart legend is for your reference:
    http://social.msdn.microsoft.com/Forums/sqlserver/en-US/cfb4fa19-b2ba-426a-804b-b5ea83d70d62/ssrs-2008-chart-legend-missing-customitems-property
    Hope this helps.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • Column chart dataprovider null object refrerence #1009

    hi
    i have one column chart whose data provider initially is set to httpservice's lastresult . i have created one function to load chart with new data on one button click. when i click that button the chart should be loaded with new data so i have written in click function of button.... chart.dataprovider=gettdata.lastresult.people.person;..... but when i run the code and click the button i gives the error
    TypeError: Error #1009: Cannot access a property or method of a null object reference...... but when i again click dismiss button of error and click the button to get new data the chart gets loaded with new data........
    i am using flexlib's mdIWINDOW as parent of column chart... please help

    Thanks Arthur.
    Your first suggestion is effectively what I'm doing as a
    workaround. But it is a bit of a pain to have to account for this
    each time when displaying a chart. It's a particular problem when
    you don't know in advance what "categories" might be returned by
    the data and that have to be charted.
    My biggest concern is that this looks like a bug, and the
    fact that it seems to occur intermittently is a bit worrying. (I
    also know that eight out of ten reported "bugs" are user error,
    which is why I was wondering if anyone else had experienced this.)
    About your second suggestion, I think the interpolateValues
    property only applies to lineSeries.

  • Flex Column Chart X-axis Label position

    Hello,
    I have a Column Chart and am wanting to align the X-axis labels on top of each Column. Is there a way to achieve this?
    Can we change the  label's default position? I know there is a "rotation" property which rotates the labels but i want to change the label postion.
    Any help/pointers is highly appreciated.
    Thanks.

    Been diging throught he charts source to figure out if there is a way of doing what I wanted, and appartntly there is (well - for the most part). For anyone else interested there is a property called alignLabelsToInterval for the LinearAxis class. This is not documented but it is a public variable - in the code ( http://opensource.adobe.com/svn/opensource/flex/sdk/trunk/frameworks/projects/charts/src/m x/charts/LinearAxis.as ):
    * @private
    public function get alignLabelsToInterval():Boolean
    return _alignLabelsToInterval;
    * @private
    public function set alignLabelsToInterval(value:Boolean):void
    if (value != _alignLabelsToInterval)
    _alignLabelsToInterval = value;
    invalidateCache();
    dispatchEvent(new Event("mappingChange"));
    dispatchEvent(new Event("axisChange"));
    Setting this parameter to false allows the base label to stay on the origin of the chart. Then you need to compute a suitable interval for the axis to get the labels you want.
    Phew!
    Allan

  • Round Corners in Bars of Column Chart

    i m trying to build a column chart with rounded corner
    bars....like we can make a text box with rounded corners using
    cornerRadius property......
    also is there any way to show a mirror image(not a shadow) at
    the bottom of the vertical-rounded-corner-bar of column chart.....
    pls
    find the image of the issue
    pls help me on this if anyone has any idea......

    pls find the solution of the above issue on these below
    urls...
    http://www.degrafa.org/samples/
    http://merhl.com/flex3_samples/nikePlus/
    http://www.degrafa.org/blog/category/data-visualization/

  • Stacked Column Chart Data Labels Not Appearing

    I am using SetSytle in Actionscript to make the data labels in a stacked column chart appear inside but it's not working.
    A portion of the code I am using to create the chart is below:
                    //initialize column set for stacked columns
                    var colSet:ColumnSet = new ColumnSet();
                    colSet.type="stacked";
                     for each(var node:XML in _chartDP){
                         var k:int = 0;
                         //skip zero datapoints
                         if (parseInt(node.toString()) != 0) {
                             //if measure node does not exist, add as series
                             k = uniqueYCat(node.attribute("BillTo"));
                             if (k == -1){                                                        
                                    // Create the new column series and set its properties.
                                    var localSeries:ColumnSeries = new ColumnSeries();
                                    localSeries.setStyle("labelPosition","inside");
                                    localSeries.dataProvider = dataArray;
                                    localSeries.yField = node.attribute("BillTo");
                                    localSeries.xField = "ConfidenceStatus";
                                    localSeries.displayName = node.attribute("BillTo");
                                    localSeries.setStyle("showDataEffect", ChangeEffect);
                                    // Back up the current series on the chart.
                                    var currentSeries:Array = chart.series;
                                    // Add the new series to the current Array of series.
                                    currentSeries.push(localSeries);
                                    //Add Array of series to columnset
                                    colSet.series.push(localSeries); 
                                       //assign columnset to chart
                                    chart.series = [colSet];
    After some more research, I put a breakpoint inside ColumnChart.as in the following function:
        mx_internal function getSeriesLabelPos(series:Series):void
            if(series is ColumnSeries)
                var columnSeries:ColumnSeries = ColumnSeries(series);
                var position:String = columnSeries.labelPos;
                if(position == "inside" || position == "outside" || position == "none")
                    _needLabels = true;
            else if(series is ColumnSet)
                var setSeries:Array /* of Series */ = ColumnSet(series).series;
                for (var i:int = 0; i < setSeries.length; i++)
                    getSeriesLabelPos(setSeries[i]);
    the following line: var position:String = columnSeries.labelPos;
    returns postion as null. It looks like the setStyle is not passing the correct value to this function.
    Any ideas as to what is going on?

    chart appearance is controlled by xml files located in
    {cfroot}\charting\styles. the file for bar charts is
    default.xml
    you will want to:
    1) copy thisfile to your site's root or some other folder
    (i.e. same
    folder that the page displaying your chart is in)
    2) edit the file and change isHideOverlapped attribute of
    labelStyle
    property for xAxis to "false"
    3) point the STYLE attribute of your cfchart tag to this new
    file.
    hth
    Azadi Saryev
    Sabai-dee.com
    http://www.sabai-dee.com/

  • Multiple Line Charts with Column Chart

    I want to show two line charts with a column chart.  Everything goes on the screen fine, except the two line charts origination point always starts at the same point despite the numbers being different.  For example, the ls1 might read 280, 190, 180 and the ls2 is 175, 188, 177 but both origination points start at 280.  The other two datapoints should also be close together but they have a substantial gap of about 50 between them.  Obviosuly I want to have two separate lines.  I have also tried moving the line series below the first lines series with no success.
    <mx:ColumnChart dataTipFunction="formatDataTip"id="
    myChart" dataProvider="
    {FCVData}" showDataTips="
    true"selectionMode="
    single"change="event.stopImmediatePropagation()"
    width="
    100%" height="95%" y="50">
    <!-- vertical axis -->
    <mx:verticalAxis>
    <mx:LinearAxis title="mytitle" labelFunction="defineVerticalLabel"id="
    v1"baseAtZero="
    true" />
    </mx:verticalAxis>
    <mx:horizontalAxis>
    <mx:CategoryAxis dataProvider="
    {MYData}" categoryField="
    YEAR" 
    />
    </mx:horizontalAxis>
    <mx:series>
    <mx:ColumnSeries id="
    pb"color="
    #FFFFFF"xField="
    YEAR" yField="B
    UDGET" displayName="
    Budget"hideDataEffect="
    zoomOut" showDataEffect="
    zoomIn">
    <mx:fill>
    <mx:SolidColor color="{colColor1}"/>
    </mx:fill>
    </mx:ColumnSeries>
    <mx:LineSeries id="ls2" dataProvider="
    {MYData}" yField="
    ACTUAL"displayName="
    Actual" 
    >
    <mx:itemRenderer>  
    <mx:Component>  
    <mx:DiamondItemRenderer/>  
    </mx:Component>  
    </mx:itemRenderer>  
    <mx:lineStroke>
    <mx:Stroke color="
    {lineColor2}" weight="
    5" alpha="
    .5" 
    />
    </mx:lineStroke>  
    <mx:verticalAxis>
    <mx:LinearAxis id="v3" baseAtZero="true"/>
    </mx:verticalAxis>
    </mx:LineSeries>
    <mx:ColumnSeries
    id="
    asytd"color="
    #FFFFFF"xField="
    YEAR" yField="
    SPEND" displayName="
    Spend "hideDataEffect="
    zoomOut" showDataEffect="
    zoomIn">
    <mx:fill>
    <mx:SolidColor color="{colColor2}"/>
    </mx:fill>
    </mx:ColumnSeries>
    <mx:LineSeries id="ls1" dataProvider="
    {MYData}" yField="
    PLAN"displayName="
    Plan" 
    >
    <mx:itemRenderer>  
    <mx:Component>  
    <mx:CrossItemRenderer/>  
    </mx:Component>  
    </mx:itemRenderer>  
    <mx:lineStroke>
    <mx:Stroke color="
    {lineColor1}" weight="
    5" alpha="
    .5" 
    />
    </mx:lineStroke>  
    <mx:verticalAxis>
    <mx:LinearAxis title="title" id="v2" baseAtZero="true"/>
    </mx:verticalAxis>
    </mx:LineSeries>
    </mx:series>
    <mx:verticalAxisRenderers>
    <mx:AxisRenderer placement="left" axis="{v1}"/>
    <mx:AxisRenderer placement="right" axis="{v2}"/>
    <mx:AxisRenderer visible="false" placement="right" axis="{v3}"/>
    </mx:verticalAxisRenderers>
    </mx:ColumnChart>

    Hi,
    Still Trying:
    I've now got this code to function:
    var i:int = 0;
                    for each (var cat:* in event.result.chart.categories.category){
                        //mx.controls.Alert.show(cat.label);
                        var z:int = 0;
                        for each (var valuee:* in event.result.chart.dataset){
                            //mx.controls.Alert.show(event.result.chart.dataset[z].seriesName);
                            //mx.controls.Alert.show(valuee.sete[i].value);
                            z++;
                        i++
    which works fine, how can I get in into Array to make a dataset for the flex charts?
    Thanks,
    Elad

  • In column Chart when Y values are grater than y linear axis maximum it doesnt show the Bar

    Hi Guys,
    In column Chart when Y values are grater than y linear axis maximum it doesnt show the Bar.But i want show the bar upto the max limit of y linear axis without changing the max limit.
    Consider following example:
    Y values are 80 90 200 300
    and following are the output :
    Left:When i am not setting maximum property of linear axis.
    Right :When i am setting maximum property of linear axis to 200.
    In right 4th bar is not visible bcoz value for that bar is 300 which is excedding  maxium.But i want the 4th bar to appear same as 3rd bar.
    How i can do this?
    Thanks in advance.

    Are you going to show the bar going past the maximum value?
    If not, then you should change the Y value when entered into the array to the maximum value allowed. i.e.
    if(itemYValue > maxAllowedValue) {
         itemYValue = maxAllowedValue;
    Where maxAllowedValue is a variable you set on the application to control the maximum value for the chart.
    This is assuming that you are loading the values into an Array before updating the chart dataprovider with that array.

Maybe you are looking for