Sorting Chart Legend

I have a report with both a table view and a chart view of monthly aggregate opportunity revenues.
Got a request to sort the bar chart view entries by product.
I followed forum advice sorting on a column non-alphabetically, using a hidden Product Category field to sort my products by machine size with this CASE statement:
CASE
WHEN ("Product Category"."Parent Product"='SPICA') THEN 1
WHEN ("Product Category"."Parent Product"='NL28') THEN 2
WHEN ("Product Category"."Parent Product"='NL28P') THEN 3
WHEN ("Product Category"."Parent Product"='L28') THEN 4
WHEN ("Product Category"."Parent Product"='L28P') THEN 5
WHEN ("Product Category"."Parent Product"='LS29') THEN 6
WHEN ("Product Category"."Parent Product"='LS29P') THEN 7
WHEN ("Product Category"."Parent Product"='LSX29') THEN 8
WHEN ("Product Category"."Parent Product"='L40') THEN 9
WHEN ("Product Category"."Parent Product"='L40P') THEN 10
WHEN ("Product Category"."Parent Product"='L40SP') THEN 11
WHEN ("Product Category"."Parent Product"='LS40') THEN 12
WHEN ("Product Category"."Parent Product"='LS40P') THEN 13
WHEN ("Product Category"."Parent Product"='LS40SP') THEN 14
WHEN ("Product Category"."Parent Product"='LSX40') THEN 15
WHEN ("Product Category"."Parent Product"='LSX40RP') THEN 16
WHEN ("Product Category"."Parent Product"='LS44') THEN 17
WHEN ("Product Category"."Parent Product"='Web') THEN 18
WHEN ("Product Category"."Parent Product"='Chambon') THEN 19
ELSE 0
END
Sorts great...in the table. But the legend is sorting in its own goofy way. Once I added that column, the legend sorted a little differently but still is in the wrong order, based on the products:
Unspecified (always shows at the top of the legend: because of ELSE 0?)
LSX529C (Category = LSX29)
LS540C (LS40)
LS840P (LS40)
LS840PC (LS40)
LS629PC (LS29P)--out of order, should be before the first item
L640C (L40)--out of order
LS640C (LS40)--out of order
Chambon (Chambon)
I checked each of the entries and see they are properly Categorized in the Content Managemetn > Products area.
Anyone have any tips on getting the legend (and thus the cylinder segments) to sort properly or what might be happening here?
Thanks
Andy
Edited by: ARK2 on Dec 17, 2010 7:04 AM

Y = Opportunity Revenue
X = Month
The report is a 4-month forecast, but not using built-in Forecasting that CRMOD uses; this report uses the Forecast checkbox in an opportunity to determine if the oppty should be on the forecast report, then grabs the overall Oppty Revenue from that same region of the Oppty (not using line/Product level revenue field).
The report uses a table and above that a chart with 3D cylindrical output where each press model (derived from a field in the Oppty header) is a different color (I'm letting Analysis defaults set the colors for each product).
My boss wants to sort the colors from smallest model size to largest model size for consistency sake and to make the chart easier to comprehend with a glance.
Is this even possible? I could see sorting by revenue size, but that's not always the best indicator (as some used larger presses may sell for less than new smaller ones).
Any ideas?
Thanks,
Andy

Similar Messages

  • Custom sorting chart legend

    Hi all,
    i've got a chart, but want to customize the sorting from the legend fields with a "fixed" colour for a value.
    regards,
    Osman
    Edited by: Ossy81 on Sep 7, 2010 5:23 PM

    I've got a vertical bar (stacked) chart. I also want to change the order in the graph. Now it shows in 1 bar in this order:
    basic
    season basic
    season fashionIf you want to change the order then you need to change the order in criteria tab itself.
    And want to give a value a fixed colour. E.g. Basic should be red and Season Basic Green etc.You can do this by clicking on fifth icon from left in chart properties(Format chart data).Uncheck use default checkbox and pick colour accordingly.
    Hope this helps.
    Thanks
    Sandeep

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

  • 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

  • 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

  • Issue on sorting the legend

    Hi guru's
    Im trying to sort the legend for vertical stacked chart and seems it doesn't work.
    The color order on the vertical stacked bars are oppositely shown , when compared to legend.
    For example : If a legend shows green on top of the legend(1st) the green appers at the bottom in vertical chart. 
    Thanks in advance..

    Check this post
    Bar-Line chart sorting
    If helps pls mark also update with your solution that helps other :)

  • 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

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

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

Maybe you are looking for

  • Can I use data entered in PDF form's field(s) to auto-populate Save As file name?

    Hello, I want to automate, as much as possible, the "Save As" process by using some of the data that the user entered in the fillable PDF form. For example, I want to include the user's First Name and Last Name that they entered in the form to be par

  • Error when starting up my database server

    . I was taking a backup for the: (1) Oracle Online Backup & Recovery, (2) File System. By the time I zip system files, database server went down due to the power failure. Thats were problem started.

  • 'Query was changed' message

    Hi, I am using a query in my Web template as a Dataprovider. I changed this query and the web template started popping up this message in the warning. I tried to put in a insignificant change in the web template and save it again so that the timestam

  • Opening Old Documents in Numbers 3.0

    After updating to Mavericks and Numbers 3.0 I can't open Numbers documents that were saved to the computer previous to the update. I get an error that says it can't be opened because it is from an unidentified developer.

  • Camera app loses draft when multitasking

    From within the Camera app, if you choose to share a photo using email, begin writing your message, switch to another app (Safari, for instance), then switch back to Camera, you're presented with the camera interface and your draft is gone. You are n