Chart Legend order

Hi All,
I have created a chart ( line chart ) that shows trends. The egend shows up in alphabetical order which is fine but it does not match with the order of lines in chart which is confusing. Can someone please help me if there is any workaround to aligh legend value order with lines in chart.

HI,
Please try the below this worked for me:
Right click on Chart and Select u201CChart Expertu201D -> u201CDatau201D tab.
Select the field from u201COn Change Of Fieldu201D
Then u201COrderu201D button will enable.
Click on the u201COrderu201C Button , it will opens u201CChart Sort Orderu201D window.
From the Drop down box select any one of the Sort Order.
It will reflect on your chart legends.
Also you can follow the below Forum posting:
http://forums.sdn.sap.com/thread.jspa?messageID=11036283#11036283
Cheers,
Kiran
Edited by: Kiran Suravajhala on Feb 24, 2012 3:41 PM

Similar Messages

  • Change chart legend order

    I have bar chart with legend. I can change chart sort order from Chart Expert. When I change order in chart I can not see same order in legend list. How can I change legend sort order.

    Go through the following SAP Note
    [https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_erq/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes%7B6163636573733d36393736354636443646363436353344333933393338323636393736354637333631373036453646373436353733354636453735364436323635373233443330333033303331333233303330333933313335%7D.do]
    Regards,
    Raghavendra

  • Chart Legend issues

    Is there a way to force a Bar Chart legend in Crystal Report 11.5 to display its objects in a particular order?
    For Example, say I am reporting on the consumption of "Bananas" and "Apples" by State. The Bar Chart should display the percentage of people who eat these fruits by county (Percent Bar Chart). The "Apples" percentage always displays on top of the bar chart and the "Bananas" on the bottom. The legend for this graph also displays the "Apple" color first, then the "Banana" color. However, if the "Banana" percentage is 0% the legend displays the "Banana" color first on the legend. This creates a inconsistent report (with plenty of complaints).
    I would like the "Banana" color to always display second in the legend. Hope I didn't confuse anyone and any ideas would be helpful.
    Thanks in advance!

    Can you post an example .rpt (saved with data)?
    I can throw it up in the debugger and see what's going on.
    -[Dan3D|http://www.threedgraphics.com] (who quite possibly wrote the legend code many years ago).

  • 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

  • Chart Legend Labels

    Hi all,
    It's extremely annoying to have to go thru all chart legend label displays and rename them to something else other than the formula.
    For example, I have a Sum of @Formula that's displaying and in order to change that, I have to go into every single chart and right click > edit label
    Is there a more round about way to do this update once?
    Thanks,

    yes that's annoying. try this if you are willing to try a workaround...
    1) put a crosstab on top of the legend that contains your formula as the row.
    2) while still in the crosstab expert, get rid of the gridlines, the cell padding
    3) exit the crosstab expert and change the row height to match the line height of the legend
    4) change the background of the crosstab so that you can't see the legend
    a bit more work, but it works.
    jw

  • 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

  • Flash Chart Legend Problem

    Hi,
    Im having a problem with my flash chart legends in Apex3.0.
    I have changed the name of the Series to what i want to appear in my legend - however the legend just shows "Value" for all my Series.
    Does anyone else have this problem?
    Cheers,
    Immanuel

    Hello,
    I need a legend like this
    No of Clicks('000)
    If i give l" No of Clicks('000)" as column alias, chart says Error :No chart data available.
    If i give "No of Clicks('000')" or "No of Clicks(''000)" as column alias in the query, it displays the correct legend..
    Would anybody tell me how to show the legend like this
    No of Clicks('000)
    Regards,
    Archana

  • Chart Legend: Worked in Beta, No longer working in Prod

    Hi everybody,
    The legend attached to the LineChart is no longer displaying the proper color. That is, the line, in the linechart is red (as requested) but the "legend" is black. It is supposed to be a red square and the word "Jobs" but I get a black square (as it is not picking the fact that it should be red).
    <s:SolidColorStroke id="s3" color="red" />
    <mx:Legend dataProvider="{myChart}" />
    <mx:LineChart id="myChart"
      x="10" y="40" width="600" height="400"
      dataProvider="{platformsData}"
      showDataTips="true" >
    <mx:series>
    <mx:LineSeries yField="id" displayName="Jobs" lineStroke="{s3}"/>
    </mx:series>
    </mx:LineChart>
    This worked in Beta but no longer works in Production. Is this a bug or I need to make coding changes to accommodate to new Production ways of dealing with this?
    Regards,
    egm

    Seems like a bug to me.  If you remove lineStroke="{s3}", the chart legend loads fine.
    Might have something to do with fill color perhaps?
    In any case, the fills documentation says:
    "If you specify the fills property and you want to have a Legend  control, you must manually create a Legend control and add LegendItems to it."
    Perhaps the entry for lineStroke should say the same.
    In the mean time you could use the defaults, or a custom Legend, like this (place into an AIR 2 project if you try running it):
    <?xml version="1.0" encoding="utf-8"?>
    <s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009"
                                xmlns:s="library://ns.adobe.com/flex/spark"
                                xmlns:mx="library://ns.adobe.com/flex/mx" width="1059" height="722">
         <fx:Script>
              <![CDATA[
                   import mx.events.FlexEvent;
                   [Bindable]
                   public var platformsData:Array = [{id:1, jobs:'Test1'},{id:4, jobs:'Test2'},{id:6, jobs:'Test3'},{id:9, jobs:'Test4'}];
              ]]>
         </fx:Script>
         <fx:Declarations>
              <s:SolidColorStroke id="s3" color="0xFF0000" weight="2" alpha=".8"/>
         </fx:Declarations>
         <mx:Legend>
              <mx:LegendItem label="Jobs" fontWeight="bold">
                   <mx:fill>
                        <mx:SolidColor color="0xFF0000"/>
                   </mx:fill>
                   <mx:stroke>
                        <mx:SolidColorStroke color="0xFF0000" weight="2"/>
                   </mx:stroke>
              </mx:LegendItem>
         </mx:Legend>
         <mx:LineChart id="myChart" x="53" y="124" width="600" height="400" dataProvider="{platformsData}" showDataTips="true">
              <mx:series>
                   <mx:LineSeries yField="id" displayName="Jobs" lineStroke="{s3}"/>
              </mx:series>
         </mx:LineChart>
    </s:WindowedApplication>

  • Pie chart legend showing digit "1" when we set "ignore blank cells"property

    All,
    We have pie chart in Xcelsius 2008 that shows the data with legend value and we have also set the ignore blank cells property to ignore the blank value from column. but once we set this property, it displays the digit "1" in the legend when there is no data.
    we are expecting that nothing should be displayed in pie chart legend when there is no data for the pie chart.
    Thanks,
    Sourabh

    hi Sourabh,
    I could replicate your scenario.
    Workaround is to create a duplicate of this chart. Go to properties of this new chart.
    Go to Appearance ->
    Uncheck
    - Legend
    - Mouse-over values
    - Data Labels
    for this chart.
    Write a logic in excel using 'IF' to verify if your data is empty.
    Use 'Dynamic Visibility' feature to display this chart only when your data is empty.
    Display your original chart if your data is not empty.
    Regards,
    Vamsee

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

  • Reporting Services Chart Legend Label

    I am creating a chart from analysis services cube data
    data is like this
    District            Year          Value
    A                    2001          10
    B                    2002          29
    (null)              2003           19
    The charts are creating fine but the legends are not showing fine. In series group i have also tried to use an expression to fix the null label.
    For null value the label is created as "Series 1". I don't want this to happen. for null value i want my chart legend to show as "State"
    Any help will be appriciated
    Regards

    Hi,
    You can use expression to achieve that. In series group, set the group on expression to be:
    =iif(Fields!<District>.Value is nothing, “State”, Fields!<District>.Value)
    Also, set the label expression to be:
    =iif(Fields!<District>.Value is nothing, “State”, Fields!<District>.Value)
    Hope this helps.
    Raymond

  • Chart legend shows database field instead of value

    Hi,
    I would like to understand the behavior of the charts legend, which sometimes display the field values as requested, but sometimes display the database field name starting with a @.
    We develop Crystal Reports and then generate them via an application. We have many releases of our application and therefore we get to work with Crystal versions 10, XI, XIr2 and 2008.
    In all cases, the legend display is correct when in the Crystal Reports Designer preview mode. However when generated through our application (using ADO.NET), depending on the Crystal runtime version (apparently) the result varies. Editing the legend label in preview mode doesn't resolve the issue.
    Is this behavior related to :
    - Crystal Reports runtime (it appears to happen only with Crystal Reports runtimes XIr2 and 2008 in our case) ?
    - Using formula fields in the chart instead of database fields directly ?
    - Evaluation time (our charts are in Report Header and/or Group Header) ?
    - any other idea ?
    Thank you very much
    Anthony

    We have been able to detect that the Language Regional Settings of Windows XP Pro has a direct effect on our charts legend display.
    We noticed that when the Regional Settings were set to English, the report would generate correctly and chart legends would display values, and not database fields names. However, when the regional settings are set to another language (tried French, Dutch, Spanish and German) the problem occurs.
    Using Process Monitor we have spotted that when in Regional Settings other than English it was still the English dll that were called (crdb_adoplus_res_en.dll)...
    The problem occurs with Crystal runtimes XIr2 and 2008 only. We use Crystal Reports in an application, using ADO.NET connector, and we use the Crystal runtime to generate reports.
    Is this a bug or is there a workaround to make sure the correct dll are called according to regional settings ?
    Thank you for your kind assistance.
    Best regards,
    Anthony

  • Chart legend width in Firefox

    This may already be common knowledge, but we just bumped into what may be the cause of truncated chart legends in Firefox.
    I have been trying to figure out how to expand the width of the legend box that accompanies charts. Firefox sometimes renders the legend box too short to display the full value character strings. But sometimes Firefox renders the legend box with a wider width, so the value strings have plenty of room to fully be displayed.
    IE, on the other hand, reduces the font of the text in the legend box and so can display the full values.
    And then a co-worker noticed a pattern in the way Firefox renders the legend box.
    If the "data point limit" set for a pie chart, for instance, is at least as great as the greatest number of values that can be displayed, Firefox renders the legend box with enough room for the full value character strings. It does not truncate the legend box.
    For example, if the largest number of values that can be displayed in a pie chart is 10, if the "data point limit" for the chart is set to 11 or more, Firefox will render a legend box with sufficient width to display the full value strings.
    On the other hand, if the "data point limit" is set to 10 or less when there can be 10 or more values for the column driving the pie chart, then Firefox will render a legend box that may not be wide enough to display the full value strings. The strings will thus be truncated to the render width of the legend box.
    So far this behavior appears consistent. I

    Actually, it is necessary only to set the "data point limit" equal to, not greater than, the maximum number of column values for a chart. So if the maximum number of column values is 10, if the "datda point limit" is set to 10, the legend box will be wide enough to display the full value strings. It can be set to a number greater than 10 as well, but that is not necessary for the legend box to be wide enough.

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

  • Error in chart legend totals when there is a negative number involved

    Post Author: dawnyanne
    CA Forum: Charts and Graphs
    Hi
    if anyone can help me I would be extremely grateful!
    I have a pie chart with a legend. There are just two values that are showing but one of the values is a negative value and the total of the legend is adding up incorrectly. Here is how it is showing at the moment
    Cash                 -0.71
    Uk Equities     100.71
    Total              101.42
    here is how it should be
    Cash               -0.71
    UK Equities   100.71
    Total             100.00
    I can set the chart amounts to be percentage - but then it comes out as only one decimal place and I need two.
    Any help would be very much appreciated!
    kind regards
    Dawnyanne
    Filed under: chart legend incorrect totals negative values

    First see KnowledgeBase Entry 1XPH5BV7.
    What processor speed was the Windows NT machine? What is the processor speed of the PXI-8170 (700 or 850 MHz). How many channels are you aquiring? Which version of LabVIEW Real-Time are you using? Which version of NI-DAQ are you using? Are you using an example program or one of your own programs? What priority are you running the VI at? (Time critical priority is recommended for DAQ VIs - remember to provide sleep time to allow lower priority operations, such as the user interface thread, to run).
    If you feel this behavior may be a bug, please contact National Instruments technical support.
    Regards,
    Chad H.
    Applications Engineering
    National Instruments
    http://www.ni.com/ask

Maybe you are looking for

  • StopALLSOUNDS() ??? is it not anymore?

    Hi all, i'll come straight to the point ! you have 5 buttons.swf and 1 HTML page. If you put these all 5 buttons into a HTML page and click on any button.swf it plays some audio. but if you hit any other button the first one doesn't stop eventhough a

  • PCR date field problem

    Hi All, When we open MSS PCR Forms the Date of Change field is populating in Arabic language. All other fields are fields correctly displayed. We are able to change the other fields except Date of Change field. Does anyone have a solution for this? P

  • FAQ Builder and Survey Builder Portlet

    I am currently using Oracle Portal Version: 9.0.2.2 and am not able to find the FAQ Builder and Survey Builder Portlet. Is this not shipped with this version? How can I go about adding these to my pages?

  • Collection not reporting to all 3 bureaus

    If a collection account is not reporting to all 3 bureaus, can I get it removed from the bureaus that it is reporting to? Or do I risk them adding it to the 3rd credit bureau?

  • Export iTunes wish list

    On Amazon your wishlist can be made public. The iTunes wishlist seems to be wholly private, though you can send a link for an individual item to a friend. Is there any way to export the whole wish list to a document that I can then send out to people