Arranging Chart Legend Items

Is there a way to change the sort or arrangement of items in a chart legend? I am doing a simple stacked bar chart with 2 measures - % Pass and % Fail (for a school system), but it always shows % Fail as the first item in the legend. I would like to show % Pass first...is there any way?
Thanks

hi,
We can do using combine with similar request
Col A Col B '%Pass' 1--Req 1
Col A Col B '%Fail' 2 --Req 2
Asc order on numbers(1,2) .So that the legends will come %pass and %fail try it in pivot table
I didn't tried this but i hope it ll work...All the best
thanks,
saichand.v

Similar Messages

  • Chart legend : adding tooltip on each item

    Hi,
    My app displays a simple Linechart and its legend. I'm
    surprised to see that the Legend component doesn't provide many
    possibilities in accessing each of the items that compose it.
    First, I'd like to add a tooltip on each item of the legend.
    Then I would like to display a checkbox in front of every marker,
    to display/hide the corresponding item in the Linechart.
    One way could be to extend the Legend item (about this I
    found
    this
    nice - yet complicated - example), but I'd really like to know
    if there is a more simpe way to achieve it. As the Legend component
    is very dependant from its dataprovider, maybe I'd rather create my
    own custom legend, using my chart's values ?
    Any help will be appreciated ! Popop ./.

    les_paulde wrote:
    wow, thanks for your swift reply! This definitely solved my problem and I can now run the query. The code turned out as follows:
    String convList = listI.toString();
    convList = convList.replace("[", "(\"");
    convList = convList.replace("]", "\")");
    convList = convList.replaceAll(",", "\",");
    convList = convList.replaceAll(" ", " \"");
    And what happens if the String representation of the object in your list contains one of the characters you're replacing? It will go awfully wrong!
    This is safer:
    public static String asString(List<?> list) {
        StringBuilder b = new StringBuilder();
        b.append('(');
        for(int i = 0; i < list.size(); i++) {
            b.append('"').append(list.get(i)).append('"');
            if(i < list.size()-1) b.append(", ");
        return b.append(')').toString();
    System.out.println(asString(listI));

  • Chart Legend covers chart !!

    Post Author: TimboK
    CA Forum: Charts and Graphs
    I have a chart which is showing support calls from sites over 6 months. The 'on change of'  is Month no. and site, the value is Number of calls. Over the 6 months there have been calls from 54+ sites. The trouble I have is that the legend is so big it overlaps and covers the chart! I have tries setting the legend to the smallest text but this did not help. I tried setting the minimum so that 10 was the lowest result but the legend is not affected.Is it possible to have the legend on another page ? The chart is in a sub-report of a main report.

    Post Author: Dan3D
    CA Forum: Charts and Graphs
    What happens if you try the right-mouse "auto arrange" option?
    If all else fails, this could probably be easily solved with our CRChart add-in library. It has an option to limit the legend to be a single column so it can never "overflow". It would just print as many legend items as fit in the one column and then put in some "more data" arrows to indicate that more legend items are charted but not shown in the current legend.
    -Dan
    disclaimer: I work for the company that makes CRChart. This product costs money.

  • Custom Formatting Of Chart Legends

    I've been playing with Flex Charting, and I have lots of nice
    looking graphs that I've created from database feeds. However, what
    I really want to know how to do is format the chart legend better.
    For example I have a pie chart that has about 50 different data
    items/series and the legend is huge in either horizontal or
    vertical mode it prints all the way down the page. How can I make
    it two, three or more columns?

    Hi Justin,
    I think, there is no way to do such a customization with the standard Javadoc (i.e. powered by the Standard Doclet).
    After all, the job of the standard Javadoc is doing standard (general) things and I just cannot imagine any general rule (setting or option) that would embrace all kinds of possible customizations about displaying of annotations.
    So, the only way in your situation would be to modify the doclet itself. You can try tweaking the standard doclet: overload some its classes or change sources (according to the license they provide). However, I just can say, that way proved to have lots of limitations.
    Fortunately, I could suggest you a different rote that would allow you solving your problem in a few minutes. We have a product called "DocFlex/Javadoc":
    http://www.filigris.com/products/docflex_javadoc/
    This is a highly customizable Javadoc doclet. More exactly, this is a system for rapid development of professional quality doclets (with the support of both framed/single-file HTML and RTF output).
    With that tool, the generation of every sort of Javadoc output is programmed in special templates (using graphic Template Designer). The product is provided with the "standard template set" that generates the HTML Java API documentation very similar to the standard Javadoc.
    In fact, to solve you task, you will need to modify a subtemplate called "annotations.tpl". See on this page: http://www.filigris.com/products/docflex_javadoc/templates.php
    If you are interested about all this, we could help you to modify the necessary template absolutely free. Then, you will need only to buy a full product license to have everything work without limitations and that will be all!
    So, if you are interested, please let us know by sending a e-mail to the address found on this page:
    http://www.filigris.com/company/contact.php
    Regards,
    Leonid Rudy
    http://www.docflex.com

  • SSRS Hide one data value label in chart legend

    Is it possible  to hide one value in the legend? I've got a stacked bar chart, but there's one value that I don't want to display in the Legend. Is it possible to hide this particular color and label in the legend?
    Thanks,
    Chris

    Hi Chris,
    Yes. In Reporting Services 2005, you could add a filter to hide one value label in the chart legend. This can be done with the following instructions:
    In Report Designer, open the chart properties dialog box and go to Data tab.
    Double click the item in the Series groups to open the Grouping and Sorting Properties dialog box.
    Switch to the Filter tab. Add a filter using the following setting:
    Expression: =Fields!<FieldName>.value
    Operaiton: !=
    Value: =”value”
    If you have any further questions, please let me know.
    Thanks.
    ***Xiao Min Tan***Microsoft Online Community***

  • Legend item text too long

    Hello.
    Question to Flex guru:
    I have too long text in Legend for chart. How can I do line
    folding or how can I show toolTip for legend item (like for a Label
    object)?
    How can I initialize Legend object with array of LegendItem
    objects?
    Sorry for my english :)
    Thanks in advance.

    Im not sure what your asking exaclty as my english is bad
    too, however i know that the label will only show one line of text,
    for wordwrap or multiple lines i think you need to use the "Text"
    control.

  • Chart legend not displaying in ERP Menu

    Sir,
    I am create the Chart in graphics builder 6i and call the chart from form builder 6i it runnnig fine chart and Legend are displayed. then move the chart and form to Database(apps) then run the form in ERP menu Chart Only display but LEGEND not display.
    Please help me how appear the LEGEND on the chart.
    Advance Thanks,
    Kadavul. V

    Hi Pradnya
    The template I am using is the copy of 0ANALYSIS_PATTERN .
    Anway I have found the answer.
    The scenario is more related to Multiquery .
    Your main template which is copy of 0ANALYSIS_PATTERN contains additional Analysis and Chart Web items . In order to include Multi-Query or Single Query additional analysis and chart web items in the print output with desired output they must have the very same name as the analysis and chart web items defined  in the 0ANALYSIS_PATTERN_EXPORT template.
    Regards,
    Muhammad
    Edited by: Muhammad Zafar on May 7, 2009 5:12 AM

  • Use comment from X-Channel data in Chart Legend

    Hi,
      Does anybody know how to set up a chart legend that will display the channel comment for the X-Channel?  There is a standard option for selecting the Y-Channel comment and the line below also achieves this.  In my case the Y-data is shared across all curves and the X-Data is independent.  Thanks in advance!
    Display the Y-Channel Comment:
    @CC(CCN)@

    You're right, it doesn't work with "curve-related text", no idea, why...
    But there is a way - probably not the best one - to do this.
    Dim oMy2DaxisSystem, oMy2DCurve, oMyShape, oMyPosition, oMyLegendColumns, oMyCurveLegendPos
    Call Report.NewLayout()
    Set oMy2DaxisSystem = Report.ActiveSheet.Objects.Add(eReportObject2DAxisSystem,"My2DAxisSystem")
    Set oMyPosition = oMy2DAxisSystem.Position.ByCoordinate
    oMyPosition.X1 = 20
    oMyPosition.X2 = 80
    oMyPosition.Y1 = 20
    oMyPosition.Y2 = 80
    Set oMy2DCurve = oMy2DaxisSystem.Curves2D.Add(e2DShapeLine, "MyNewCurve")
    Set oMyShape = oMy2DCurve.Shape
    oMyShape.XChannel.Reference = "[1]/[15]"
    oMyShape.YChannel.Reference = "[1]/[25]"
    oMy2DaxisSystem.CurveLegend.Visible = True
    oMy2DaxisSystem.CurveLegend.Settings.ShowGridLines = FALSE
    Set oMyCurveLegendPos = oMy2DaxisSystem.CurveLegend.Position
    oMyCurveLegendPos.SizeMode = eLegendSizeElementwise
    oMyCurveLegendPos.ElementHeight = 6
    oMyCurveLegendPos.ElementWidth = 35
    oMy2DaxisSystem.CurveLegend.Settings.Font.Size = 5
    Set oMyLegendColumns = oMy2DaxisSystem.CurveLegend.Columns
    Call oMyLegendColumns.Add
    oMyLegendColumns(1).Type = eLegendTextComment
    oMyLegendColumns(1).RelativeWidth = 1
    oMyLegendColumns(2).Type = eLegendTextCustomText
    oMyLegendColumns(2).RelativeWidth = 1
    oMyLegendColumns(2).Text = "@CC(CurrXChnNo)@"
    Call Report.Refresh()
    The code is available in Examples, I just added some minor details.
    Another way (shorter, but not so universally valid) is to extend your code:
    Report.ActiveSheet.Objects.Item("2DAxis2").CurveLegend.Columns.Item(1).Type = eLegendTextCustomText
    Report.ActiveSheet.Objects.Item("2DAxis2").CurveLegend.Columns.Item(1).Text = "@CC(CurrXChnNo)@"
    IMO, this works only if you already have the graph.
    And take care about the object name ("2DAxis2"), this can vary from page to page...

  • Problem: chart-legend doesn't copy into Keynote

    I have some charts from numbers (imported xls-files) that i want to copy into a keynote-presentation.
    The chart can be pasted into the presentation, but the chart-legend never shows up.
    I've tried selecting and copying the chart and the chart-legend but that doesn't work. Copying only the chart-legend also doesn't work.
    Can somebody help me out here?
    thanks,
    jojo

    jojo,
    Arrange > Group your Chart and Legend before copying. They will stay together then.
    Regards,
    Jerry

  • Problem: chart-legend (numbers) doesn't copy into Keynote

    I have some charts from numbers (imported xls-files) that i want to copy into a keynote-presentation.
    The chart can be pasted into the presentation, but the chart-legend never shows up.
    I've tried selecting and copying the chart and the chart-legend but that doesn't work. Copying only the chart-legend also doesn't work.
    Can somebody help me out here?
    thanks,
    jojo

    Jerrold Green1 wrote:
    For some reason, you need to Arrange > Group your Chart and Legend before Copying if you want them to stay together. Not sure why this is so, but the fix works.
    My guess is:
    when we copy paste without leaving a given program, we use a structure of the clipboard defined by the program itself. This structure gives the ability to copy paste different kinds of objects.
    For instance, if we copy a chart and its legend in Numbers and paste in a different location in a Numbers document, which may be a different one, we paste the chart and the legend.
    When we leave the source program to a enter a different program, if the proprietary clipboard format of this program is different than the source one, the clipboard's contents is "normalized" to match the destination program's requirements. When we pass from Numbers to Keynote, a clipboard containing a chart and a legend is normalized as a graphic object.
    If we try to paste in a TextEdit document formatted as a Text one we will get nothing.
    If we paste in a Textedit document formatted as RTF, we will get the chart.
    My hope is
    (a) that the iWork team build a proprietary clipboard structure common to the different components of the suite. I feel that this may be done.
    (b) that the operating system is able to transfer the proprietary clipboard components between two programs using the same. I'm not sure that this requirement is satisfied at this time.
    Yvan KOENIG (from FRANCE vendredi 26 décembre 2008 15:23:48)

  • Chart legend too wide when using horizontal layout

    I am using a flex chart with about 15 series on it. I've set
    the legend direction variable to "horizontal". However since the
    panel width which contains the chart is fixed, the legend sprawls
    out to the right instead of going "wrapping around" nicely to stay
    within the panel. As a result, you can't read the whole legend when
    looking at the chart. The chart itself stays the proper width, but
    the legend is too wide and can only be seen via using the scrollbar
    to move horizontally. How can that be fixed?

    Solerous, you must create a custom legend. Here's an example
    that uses a grid to lay out the individual grid items. If you have
    a variable number of series, then you can probably come up with
    better logic for laying out the legend, but this should help get
    you going.
    hth,
    matt horn
    flex docs
    <?xml version="1.0"?>
    <!-- charts/CustomLegendInActionScript.mxml -->
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    backgroundColor="white" creationComplete="init()">
    <mx:Script><![CDATA[
    import mx.containers.GridItem;
    import mx.containers.GridRow;
    import mx.graphics.SolidColor;
    import mx.graphics.IFill;
    import mx.charts.LegendItem;
    import mx.charts.Legend;
    import mx.collections.ArrayCollection;
    [Bindable]
    public var expenses:ArrayCollection = new ArrayCollection([
    {Expense:"Taxes", April:2000, May:321, June:131, July:1100,
    August:200, September:1400, October:42},
    {Expense:"Rent", April:1000, May:95, June:313, July:600,
    August:400, September:200, October:52},
    {Expense:"Taxes", April:2000, May:321, June:131, July:90,
    August:500, September:900, October:300},
    {Expense:"Bills", April:100, May:478, June:841, July:400,
    August:600, September:1100, October:150}
    private function init():void {
    for (var i:int = 0; i < myChart.series.length; i++) {
    var li:LegendItem = new LegendItem();
    li.label = myChart.series
    .displayName;
    var sc:SolidColor = myChart.series.getStyle("fill");
    li.setStyle("fill", sc);
    var gi:GridItem = new GridItem();
    if (i < 3) {
    // First row
    gi.addChild(li);
    gr1.addChild(gi);
    } else if (i >= 3 && i < 6) {
    // Second row
    gi.addChild(li);
    gr2.addChild(gi);
    } else if (i >= 6) {
    // Third row
    gi.addChild(li);
    gr3.addChild(gi);
    ]]></mx:Script>
    <mx:Panel title="Bar Chart with Legend" width="500"
    height="600">
    <mx:BarChart id="myChart" dataProvider="{expenses}"
    height="400" showDataTips="true">
    <mx:verticalAxis>
    <mx:CategoryAxis
    dataProvider="{expenses}"
    categoryField="Expense"
    />
    </mx:verticalAxis>
    <mx:series>
    <mx:BarSeries xField="April" displayName="April (in
    $USD)"/>
    <mx:BarSeries
    xField="May"
    displayName="May (in $USD)"
    />
    <mx:BarSeries
    xField="June"
    displayName="June (in $USD)"
    />
    <mx:BarSeries
    xField="July"
    displayName="July (in $USD)"
    />
    <mx:BarSeries
    xField="August"
    displayName="August (in $USD)"
    />
    <mx:BarSeries
    xField="September"
    displayName="September (in $USD)"
    />
    <mx:BarSeries
    xField="October"
    displayName="October (in $USD)"
    />
    </mx:series>
    </mx:BarChart>
    <mx:Grid id="myGrid">
    <mx:GridRow id="gr1">
    </mx:GridRow>
    <mx:GridRow id="gr2">
    </mx:GridRow>
    <mx:GridRow id="gr3">
    </mx:GridRow>
    </mx:Grid>
    </mx:Panel>
    </mx:Application>

  • Chart legend scroll bar

    Hi,
    i have a chart and legend in a panel..
    when there are more than 20+(depends on size of the panel and
    in my case it is around 20) legend items, legend items occupies
    most of the place and which in turn shrinking chart..(so chart is
    not clear in this case).
    can i have something like, "add a scroll bar to the legend..,
    if it is shrinking the chart more than 50% of the actual size of
    panel..??
    thanks
    siva

    You could wrap the legend in a vBox or hBox as
    appropriatte

  • Chart legend incomplete BO XI 4.1

    Dear all,
    I am struggling with a point which should be an easy one as it used to work perfectly in previous versions...
    I have a chart legend with quite a lot ot items but I can not manage to "split" the legend in 2 or more lines.
    Automatically, all criteria are on one line and each headings are otherwise cut (wrap) otherwise some do not appear (Truncate).
    I am working under BO XI 4.1 (Webi).
    I can provide further details if needed,
    Thank you for your help,
    Best regards,
    Audrey

    Hi Audrey,
    I am agree with Sathish, Measure Heading is getting split automatically in BI 4.1, But if you are looking for Legend title should split in multiple lines you can use following trick.
    And if your getting truncated measure headings make sure you have set Text Policy to Wrap.
    Output :
    Regards,
    Veer

  • Chart legend is incorrect if table is excluded in analysis

    Working on OBIEE 11.1.1.5 with Essbase source.
    If I include the table in the analysis, the legend of my chart looks correct (5 items).
    https://picasaweb.google.com/jennifer.corpus/OBIEEQuestion?authkey=Gv1sRgCMThg5CZss_9Qg&feat=directlink#5617779985543105954
    However, if I remove the table, it multiplies and shows 17 legend items. All I am doing is closing the table because I don't want it to show on my dashboard.
    Any ideas why?
    https://picasaweb.google.com/jennifer.corpus/OBIEEQuestion?authkey=Gv1sRgCMThg5CZss_9Qg&feat=directlink#5617780049123695106
    Thanks for your help!
    Jennifer

    Hello,
    Any answer? How do you resolve the problem?
    Best Regards,
    Marta Pimenta

  • Pie chart legend summary bug, weird text being printed

    Hi guys, I created a simple report with a Pie Chart on VS2008 and on my computer the chart legend displays all items perfectly but when I deploy it on our web server the legend summary, which is always 100% doesn't say "Total" anymore but a weird text, have you seen this before? Here's a sample.
    On my machine the chart legend is the following:
    ITEM1                                35.0%    63
    ITEM2                                38.3%    69
    ITEM3                                26.7%    48
      Total                                  100.0%  180
    On the server:
    ITEM1                                35.0%    63
    ITEM2                                38.3%    69
    ITEM3                                26.7%    48
    eTotal:1_n_pseudoloc_   100.0%  180

    Have not seen this before, but do apply SP1 on your dev computer:
    https://smpdl.sap-ag.de/~sapidp/012002523100009351512008E/crbasic2008sp1.exe
    Recompile.
    And use SP1 runtime:
    https://smpdl.sap-ag.de/~sapidp/012002523100010010692008E/crredist2005_sp1_x86.zip
    See if that helps.
    Ludek
    Follow us on Twitter http://twitter.com/SAPCRNetSup

Maybe you are looking for

  • How to protect ABAP programs

    Hi experts          I want to protect my ABAP programs from other users from changing it.          How to protect my program by setting password or not allowing only display mode like.          Please suggest me on this. Thanks in advance. Regards Ra

  • Acrobat 8.1.4 only prints 1 page when I select "all"

    Hi all, I'm hoping you can help me. Just spent 27 minutes on hold with Adobe tech support and gave up. I have an iMac running OS 10.5.8 and had successfully used other versions of Acrobat. I bought a ScanSnap printer and it was bundled with Adobe Acr

  • Is there a cord to allow me to view my MacBook Air on television?

    I checked the online store but not sure what I need or if Apple even has it.  I want a cord to go from my MacBook Air to my HDTV.  Which one do I need?

  • How to transport number range group Configuration in Material Master

    Hi, I have this query regarding how to transport number range group in material master from one server to another. Problem: There was no number range assignment done for a particular material type. So, i assigned the particular mat. type to a group w

  • Load external image and data in video?

    Hi, i'm a newby in After Effects. I have a question: is it possible to make one like this video? http://www.facebook-studio.com/gallery/submission/don-natale-1 the first part isn't a problem, but the integration of selected index in the video.... is