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/

Similar Messages

  • BIP 11.1.1.7 - Stacked Bar chart data label not visible in pdf

    Hi all,
    I have a report built with the online editor. This contains a stacked bar chart with percentage values in a repeating section and I made the property DataVisible=true.
    When I view the report in interactive mode it all works: I can see the data label for every value of the parameter but when I view in any other format (PDF, PPT, ecc..) the data labels are visible in the first chart (for the first value of the parameter) while in the other charts they aren't. This doesn't happens for other types of chart, for example with a pie chart.
    Can someone help me or tell if it is a bug?
    Thanks,
    Micaela

    Hi Mitalee,
    Would you please check the PAM at https://websmp108.sap-ag.de/~sapidb/012002523100018972812014E
    On page 11 it says 64 bit IE11 is not supported; is your IE11 32 bit or 64 bit?

  • Stacked Column Chart Value does not show in Preview or SWF

    I have created a simple (one-column) stacked Column chart from an imported Excel 2007 spreadsheet. I am using 3 values and all three are there when I am editing the chart. When I do a Preview or Export it to a .swf file, the third value does not show up. It only shows the first two.
    I am running Xcelsius 2008, Version 5.1.3.0, build 12,1,3,495.
    Edited by: Rich Krejsa on Apr 9, 2009 9:35 PM

    Hi Rich,
    Try to rebind the data with the component and preview and see.
    Also check with other charts to see if you get the same behaviour.
    Try placing a table component and display those cell and see what values are there when you preview.
    There could also be posiblities that the third values must be very small as compared to the other two,so check that as well and may be select the secodry scale in the general tab for the 3rd series.
    Let me know if this helps.
    Thanks,
    Amit Mathur.

  • Waterfall chart data labels - not rendering in Flash

    I have a problem with the waterfall charts.  When I turn on the data labels, the charts fail to render in Flash - I get a axis and some garbled legend icons.  If I turn off the waterfall chart data labels, the problem goes away.  Clearly, there is some bug in the label coding. 
    Ken Jones

    Make sure you have the "Refresh before components are loaded" option checked on your QaaWS connection for the monthly data in the connection manager of Xcelsius.
    To do this go to the connection manager in Xcelsius.  Go to the connection you want to edit.  Click the "Usage" tab.  Then check the first check box that reads "Refresh Before Components Are Loaded".
    This will run that query as soon as the dashboard is loaded.  I think what may be happening to you now is that you have set a trigger cell of some kind that says, "When cell X becomes "XYZ" run the monthly data query.  But when the dashboard is first loaded cell X does not equal "XYZ" therefore the query does not run initially.  But then when you click the weekly tab and the back to the monthly tab you are setting cell X to "XYZ", therefore the query runs at that point.
    Hope this helps,
    Jeff
    Edited by: Jeff Hoffner on May 18, 2010 9:07 PM
    Edited by: Jeff Hoffner on May 18, 2010 9:07 PM

  • 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

  • Stacked column chart from XML data source

    I have an XML file, which lists elements with three
    attributes: date, inactive-interval, user-count.
    I need to build a stacked column chart with a single column
    for each distinct date, one stack for each distinct
    inactive-interval for that date, and the height of the stack equal
    to the user-count.
    I can define ColumnSeries with yField="user-count"
    xField="date", but I don't know how to partition the column into
    stacks by inactive-interval values.
    Here is a sample data set:
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <data>
    <snapshot date="01/01/2007" inactive-interval="0"
    user-count="3"/>
    <snapshot date="01/01/2007" inactive-interval="7"
    user-count="2"/>
    <snapshot date="01/01/2007" inactive-interval="30"
    user-count="4"/>
    <snapshot date="01/02/2007" inactive-interval="0"
    user-count="4"/>
    <snapshot date="01/02/2007" inactive-interval="7"
    user-count="2"/>
    <snapshot date="01/02/2007" inactive-interval="30"
    user-count="3"/>
    </data>

    Your CategoryAxis id="ha_ccm" uses categoryField="period", and this is the label for the your series (i.e. "Quarter 4/2010"). You cannot have multiple categoryFields for the CategoryAxis; it can only use one data field for the labels. You can use data tips and/or label functions to show the individual series' values on the columns.
    Also:
    Your labelField in the ColumnSeries are set to a ColumnSet name instead of a field name in your dataprovider.
    Font must be embedded if you set ColumnChart.showLabelVertically="true".

  • Dsiplay data values and data lables in a stacked column chart

    Hi All
    Is there a way to display data values and data labels in a stacked column chart. Mouse over or display of labels in legends wont help. It has to be in the chart .
    Regards,
    anshul

    Hi Anshul,
    You can display either data value or data label in a stacked column chart by checking the Data Label Displaying Mode option under Format Chart->Data Values.
    You can also do the same by checking the same option under Format chart->Area Display->Data Values.
    I dont think you would be able to display both in a column chart whereas you would be able to do it in a pie chart.
    Hope this helps.
    Regards
    Sri Harsha

  • Decimal Point data for Stacked Column Chart

    Hi,
    I use a basic version of a Column chart for one of my projects. I use a stacked column chart with 2 data series namely "Expenses" & "Profit".
    I use decimal point numbers (with only two or three places after the decimal point) for both series.
    When I mouse over the bars of the output for tool tip, I view more numbers after the decimal point for some data.
    How to fix the decimal point to only 2 places & what is the reason for this behaviour?
    Attached is the sample output (output.gif) showing the above condition for the mentioned data.
    -Sen

    Create an toolTipShow event handler and use a NumberFormatter to set the precision of the numbers (sample code from LiveDocs):
    <?xml version="1.0"?>
    <!-- formatters\MainNumberFormatter.mxml -->
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
        <mx:Script>
            <![CDATA[
                // Define variable to hold the number.       
                [Bindable]
                private var bigNumber:Number = 6000000000.65;
            ]]>
        </mx:Script>
        <!-- Declare and define parameters for the NumberFormatter.-->
        <mx:NumberFormatter id="PrepForDisplay"
            precision="0"
            rounding="up"
            decimalSeparatorTo="."
            thousandsSeparatorTo=","
            useThousandsSeparator="true"
            useNegativeSign="true"/>
        <!-- Trigger the formatter while populating a string with data.-->
        <mx:TextInput text="{PrepForDisplay.format(bigNumber)}"/> 
    </mx:Application>

  • Legend shows items not in same sequence as stacked column chart

    I inserted a stacked column chart
    sequence in bar is A (bottom), B (middle), C (top)
    legend shows it the other way around (A (top), B (middle), C (bottom)
    How can sequence be aligned?
    Thanks Bernd

    Hi Bernd
    Unfortunately you cannot change the sequence. 
    However if you read the chart from a visual perception point of view the sequence does work, although it's less intuitive.  You first read the item closest to the x-axis, and you read the legend from the top to bottom.
    Regards
    [Charles|http://www.reportex.co.uk/xc_waterfallchart.html]

  • Xcelsius - Stacked Column Chart - Overall value / Result

    Hi *,
    does somebody knows how I can display the overall value of my columns in a stacked column chart?
    Or is there a workauround to do this?
    Thanks and regards,
    Markus

    Yes, it would absolutely be nice if they provided this option for the stacked charts.
    Couple of other options-
    Create a bar chart that graphs the totals as one series.  Specify that it should show the data values, adjusting an offset so the totals appear to the end/top of the bar, Place the totals chart behind your stacked bar chart.  obvioulsy the cahrts have to align precisely.
    Another option - concatenate the total amount so it appears as part of teh axis label.  This works better for some scnarios than others.
    See this video example to get an idea of how this might work.
    http://everythingxcelsius.com/2009/06/show-chart-values-without-hovering.html
    With SP3, if there are only a few series in your chart, another option you can play with is adding an additional series for each series in your chart. Have a very small value that won't register visually on the chart e.g. .001, and then assign category labels for each series that is total value for a series, and choose to display the lables.  Hard ot explain this one well, I 'll see if I can put togeter a simple example.  This gets ugly quickly.
    I'd love to hear ideas from others.

  • Drill Down between 2 stacked column chart with multiple rows.

    Hi,
    Can anyone please help me.
    1) i have to create stacked column chart with Region and cout of calls for previous 3 quarters.
    2) the 2nd stacked column should display the priority with the count of calls for the respective selection of region on the 1st chart..
    to achieve this,
    i'm using 2 stacked column charts and 1 lebel baseb menu.
    from this i can able to get the drill down from label based menu to 2nd stacked column chart but i couldn't able to done the same from 1st stacked coumn chart.
    Becoz my data is multiple row for each quarter.
    please suggest me to achieve the drill down between 2 stacked column charts.
    assume that my data like below.:
    coulmns for 1st stacked column chart : Region, Q2,Q3 &Q4
    Region                Q2                Q3               Q4
    Other              3658              3497               497
    NA - North
    America                3               3               1101
    APJK     1     4     597
    UK               324
    EMEA North     1     1     288
    CORPORATE     1     5     215
    LA -
    Latin America1     2     208
    EMEA     1          199
    EMEA South     1     1     169
    Coulmns for 2nd coumn chart:  Region, Priority, Q2,Q3,Q4 ()which is derived from 1st table.
    Region     Priority     Q2     Q3     Q4
    Other     D: End of Next Day     1568     1613     239
    Other     C: End of Day     983     893     119
    Other     A: 2 Hour     631     610     70
    Other     B: 4 Hour     396     318     56
    NA -
    North AmericaD: End of Next Day     2     2     514
    APJK     D: End of Next Day          3     297
    NA -
    North AmericaC: End of Day               284
    NA -
    North AmericaA: 2 Hour     1          170
    UK     D: End of Next Day               157
    APJK     C: End of Day     1     1     152
    Other     E: 3 - 5 Business Days     68     58     13
    EMEA North     D: End of Next Day          1     136
    CORPORATE     D: End of Next Day          4     107
    NA - North America     B: 4 Hour          1     104
    LA - Latin America     D: End of Next Day     1     1     86
    EMEA     D: End of Next Day               86
    UK     C: End of Day               85
    APJK     A: 2 Hour               79
    EMEA South     D: End of Next Day               72
    EMEA North     A: 2 Hour               69
    EMEA North     C: End of Day               56
    APJK     B: 4 Hour               55
    EMEA     C: End of Day     1          53
    LA - Latin America     C: End of Day               54
    UK     A: 2 Hour               49
    EMEA South     C: End of Day     1          44
    CORPORATE     A: 2 Hour          1     43
    CORPORATE     C: End of Day               44
    LA - Latin America     A: 2 Hour          1     42
    EMEA South     A: 2 Hour          1     32
    EMEA     B: 4 Hour               30
    UK     B: 4 Hour               30
    EMEA     A: 2 Hour               27
    EMEA North     B: 4 Hour     1          26
    NA -
    North AmericaE: 3 - 5 Business Days               25
    LA - Latin America     B: 4 Hour               23
    EMEA South     B: 4 Hour               20
    CORPORATE     B: 4 Hour               17
    APJK     E: 3 - 5 Business Days               13
    Other     F: 6 - 10 Business Days     6     4     
    Other     G: 11 - 20 Business Days     6     1

    Hi Srinivas,
    I'm using label based menu "filterd rows" only but i couldn't bind the drill down with the 1st stacked column chart.
    for mor details:
    1) i'm having 2 stacked coumn charts & 1 lebel based menu but eventhough i couldn't able to achieve.
    if i select the lebel based values then the 2nd stacked column charts is giving detailed valus but if i keep my mouse on the 1st stacked column chart the there is no changes on the 2nd chart..
    somewhere i'm mising the binding data between 1st stacked coumn chart & lebel based menu on drill down part.
    Becoz i'm having multiple rows. so can you please try your and send me the xlf file using your concept.

  • Help Creating Dynamic Stacked Column Chart with Multiple Criteria

    Hi all. Im new here and hoping you can help.  I have a dashboard Im trying to rebuild from scratch (our computer had a meltdown and we lost all our files). I did not build the dashboard initially so Im trying to recreate it from the flash file we were able to recover. I have come across a chart that I just cannot figure out how to do.  I can figure out how to write an array in the Excel sheet that pulls the data into a table the way I need it to be but found out after I wrote that that Xcelcius doesn't support arrays so all my data disappears when I go into preview mode (which is especially frustrating since I can see the chart working fine in design mode).  Anyway this is what the data table looks like
    Month         Year            Company      Positive #          Negative #         Neutral #          Positive %       Negative %      Neutral %
    October      2011            CompanyA      1234                1234                 1234                 10                    10                    10
    October      2011            CompanyB      1234                1234                 1234                 10                    10                    10
    October      2011            CompanyC      1234                1234                 1234                 10                    10                    10
    October      2011            CompanyD      1234                1234                 1234                 10                    10                    10
    November  2011            CompanyA      1234                1234                 1234                 10                    10                    10
    November  2011            CompanyB      1234                1234                 1234                 10                    10                    10
    November  2011            CompanyC      1234                1234                 1234                 10                    10                    10
    November  2011            CompanyD      1234                1234                 1234                 10                    10                    10
    December  2011            CompanyA      1234                1234                 1234                 10                    10                    10
    December  2011            CompanyB      1234                1234                 1234                 10                    10                    10
    December  2011            CompanyC      1234                1234                 1234                 10                    10                    10
    December  2011            CompanyD      1234                1234                 1234                 10                    10                    10
    The original chart was built so that you would choose the month from a combo box and then the company names would show up along the X axis with their % amounts shown in the stacked column.  I know how to make a combo box work and I know how to make a stacked column chart work with static data.  I cannot for the life of me figure out how to get it to work so that when you choose the month from the combo box it filters the data.  I've tried filtered rows but I'm just missing some information that makes it work and I can't figure out what that information is.  It has to be able to get the month/year combo from the combo box and then go to the table, filter it by month and year and then create a multi-row table of data with just the company and the percent values.  Any help would be greatly appreciated!

    Which connection you are using?
    IF quite difficult if you are working under static data.

  • In the new Numbers, How can I get a 2D stacked column chart to display only 1 column?

    In the new Numbers, How can I get a 2D stacked column chart to display only 1 column?

    This is one of those things that I find really strange about Numbers 3. The control for what you want to do is not where anyone would expect to find it.
    Select the Chart
    Click on Edit Data References
    Look at the bottom left corner of the Numbers window. It should say "Plot Columns as Series" or "Plot Rows as Series"
    Click on it and change it to the other

  • Stacked Column Chart with Lines

    Requirement:
    User stacked Column chart to display data for defects for 4 departments.
    1 or 2 lines to show baseline for defects(constant).
    Is there anyway that I can do that just like we can create one in Excel?
    (stack a Stacked column chart with a line chart is not a solution.)
    Any advises?
    Thanks,
    Wen

    Hi Wen,
    I realise that you are not going to get this to work with a standard component on its own. I think it might be possible to acheive it with overlaying barcharts and combination charts.
    My assumption is that you are looking for something that has a stack with 3 separate items in it. Two target lines crossing over the stacked chart.
    I will have a look at this to see if I can come up with something. Let me know if this is not your requirement.
    No, I don't work for SAP. I think those that do have the SAP logo beside them.
    Regards
    Alan

  • Help - How do I Add a Trendline to a Stacked Column Chart??

    I have a stacked column chart (NOT a 100% stacked column chart) and need to add a line to show the year goal.  I can do this in Excel, but for some reason can't figure out how to do this in SSRS.  I read various tutorials, blogs and MSDN pages
    but nothing works.  The weird thing is that they all say that I should right-click on the chart and there should be a DATA tab...on the chart properties.  THERE IS NO DATA TAB, i'm here to tell you. I'm using SQL 2012 so not sure if that might make
    a difference.
    So how do I do this?
    Again, this can be done in Excel, don't understand why this isn't easier to do in SSRS.
    BTW, completely separate rant here, but it takes me 20 minutes every single time I want to log into MSDN forums.  It never seems to remember my password and I have to reset it, then jump through a bunch of security nonsense.  Anyone else have this
    problem?
    Thanks!!

    Hello,
    If I understand correctly, you want to add a line chart to display the Goal values in the stacked column chart. You can try to add the secondary field to the Values area and change the chart type to "Line". Both data field in the Values area
    shares the Category group and series group. Please refer to the following screen shot:
    If I have any misunderstanding, please post your report dataset with sample data for further analysis.
    Regards,
    Fanny Liu
    If you have any feedback on our support, please click here. 
    Fanny Liu
    TechNet Community Support

Maybe you are looking for