Include data in chart legend

I have a nice pie chart showing expense categories as percentages of total budget.
Since there are many categories, and some are very small, you can't easily identify all of them in the pie chart.
I'd like to have Number append the percentage next to the name of the category in the legend. Is that possible? Or does anyone have an easy work around? I know I can manually put them in, but I'm hoping to have this wonderful program do it for me!
Alternatively, is there a way to tell Numbers to group all categories that represent less than a certain percentage of the total to be grouped together as 'other'?
Thank you in advance.

If you want to show the label name with the percentage up on the pie, not in the legend, you can click "Show Series Name" in the Chart Inspector. If you want it in the legend it's a little more work.
You can create the labels you want in another column of your chart. If column A has your "expense category" labels and Column B is your data, you can create labels in column C:
C=A&" "&ROUND(100*B/SUM(B),0)&"%"
That will create a label of the form "MyLabel 35%".
You already have your pie chart created I presume. To use column C as the labels, select the chart, grab the black box in the table that indicates your labels and move it to column C.
Message was edited by: Badunit

Similar Messages

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

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

  • 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

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

  • Problems On Show Chart Legend in Crystal Report Java Viewer

    Hi all,
             We found the problem on show chart legend values of each column, i have already set the "Tool tip text " option by formart chart, but the ouput on java viewer on can show first column data. seem Java view not support for display Tool Tip by chart columns ?
    Thanks
    Andrew

    i missed the following line in my code.
    rcDoc.DataDefController.FormulaFieldController.Add(oFormulaField);
    now it works......
    my next issue is that,
    chart returns True & False captions. but i want to show actual value. how its to be done
    regards,
    Padmanaban V

  • Pie Chart legend label icon

    Hi, is it possible to change the label icons of a Pie Chart legend? I have a pie chart with genre distribution % and would like to set the male and female genre icons instead of the color. 
    Thank you

    Hello Pedro,
    in general you can' t change the label icons in SSRS - I assume you mean with "label icons" the small colored rectangles indicating each of the sections in a pie chart. But I have a workaround for you: Simply not to use the build-in labeling mechanism
    of the chart, but to create an individual textbox with the needed symbols for your purposes. In that textbox you have to set an expression for showing the needed male or female symbols as Unicode-chars. There's a text function for that, I mean something like
    "=ChrW(&XXX)" is the appropriate expression. XXX has to be the character string of the Unicode-chartset, if you want e.g. the male symbol as an icon. Unfortunately, I can't post links, but it's quite easy to find via Bing or Google the needed
    chars or signs in the Unicode-Table (use e.g. "Unicode table" as search string and you find a great site for retrievaling chars and symbols in the Unicode-Table).
    Generally spoken, I wouldn't use pie charts at all, normally bar charts are the better choice in visualizing data - with bar charts it's easier to recognize skales than in a pie chart and you can often label bars in a direct way, so you don't need an extra
    legend.
    I hope I could help you, but feel free to ask me, if yo have further questions
    Robert 

  • Chart Legend Formatting.

    Post Author: c93293
    CA Forum: Charts and Graphs
    Does anyone know how to remove commas in a chart legend for numeric data?

    Keynote is now version 6.1
    Selecting the text and changing attributes works as it should.

  • Bubble chart legend problem

    Hello.
    I have problem with bubble chart the problem is that in chart legend appear the same number of object what bubble in chart e.g. if chart have 5 bubble then legend also have 5 object.
    What do I want to obtain is that in chart appear bubble which have different color (color depends on condition) and legend relate only colors. For example if chart have 4 bubble 3 - red and 1 - green then in legend appear only two position which relate green and red color (now appear 4 object three about red and one green).
    Can any one tell me how to resolve this problem?

    I already did this I added three condition (three colors red, green and yellow) in field "Value of" I choosed "is equal to" unfortunately it didn't help.
    Maybe I joust try to describe what I want to show in this chart.
    Suppose I have table with four columns u201Cdateu201D, u201Camount (number type)u201D, u201Csize (number type)u201D, u201Crisku201D (text type) now where this value appear on chart:
    - date is x axis
    - amount is y axis
    - size is a bubble size
    - risk will be bubble color
    Now I have 3 kind of risk u201CLowu201D (green color), u201CMediumu201D (yellow color) and u201CHighu201D (red color).
    Now in my data base I have table with record:
    - u201C11-11-2009u201D, u201C1u201D, u201C2u201D, u201CMediumu201D
    - u201C12-11-2009u201D, u201C2u201D, u201C1u201D, u201CMediumu201D
    - u201C13-11-2009u201D, u201C1u201D, u201C1u201D, u201CHighu201D
    - u201C14-11-2009u201D, u201C3u201D, u201C3u201D, u201CLowu201D
    - u201C15-11-2009u201D, u201C1u201D, u201C1u201D, u201CLowu201D
    Ok so now In My chart I should have 5 bubble and in legend three value (green, red, yellow) but in this case I always have five (the same number what record in table).
    Sorry if this example is not clear.

  • Include a pie chart graphics in Smart Form

    hi ,
    my req. to include a pie chart graphics in Smart Form .
    my logic
    1) write a pie chat program using the data .
    2) convert into bmp and upload into se78
    3) include the pic in smart form .
    is there any other way
    can u please mention the class and method to include the picture directly .
    currently i have downloaded the pic in the local server using the
    CALL METHOD GP_INST->IF_GRAPHIC_PROXY~EXPORT
    EXPORTING
    FORMAT = 3
    WIDTH = 1000
    HEIGHT = 3000
    NAME = 'c:\s'
    IMPORTING
    CONTENT_TYPE = ct
    CONTENT_LENGTH = cl
    CONTENT = t
    RETVAL = RETVAL
    but the picture is not visible ( not in jpg format) . its not readble.
    am attaching the code .
    its urgent , please reply.
    cheers
    senthil

    Thanks problem resolved.

  • Xcelsius - Embedded 'Jpg' logo not visible, Pie chart Legends not visible

    Hi,
       I am new to xcelsius. could you please help.
       I have two issues.
      1. I incorporated Logo (JPG FILE) and selected options Embed file, resize image to component, but image is not visible when I preview. Why? What needs to be done to make logo visible in preview(swf file). I did not export yet to Infoview though.
    2. Legend values are cropped. I have 35 legends that are to be listed for pie chart. I can see only 31 and remaining four not visible (two from beginning, 2 at the end). I reduced font to lowest visible value i.e.  8 and increased height max possible that looks good . How to make them visible? or make them to fit to chart. Is there any option? Legend values are towards right of chart.
    Please help.
    BR, Nanda Kishore

    Hi,
       Are you using Image Component to insert your JPEG, if not try that. It will work as expected.
       As for your pie chart legends, it will work as long as your Pie Chart is large enough to fit all regions onto the screen.
       Try a simple test just to prove that concept.
          - Create 2 columns in Excel
          - Make Column A your Region Column. Insert up to 35 records
          - Make Column B you Data column. Also insert up to 35 records.
          - Now map your data into the Pie Chart and make sure you reduce the fonts of the region to "8" (Smallest it can go)
          - Preview it.
    Ken

Maybe you are looking for

  • Prevent multiple logins of the same user in portal

    Hi Experts, I have a requirement wherein I am needed to ensure that whenever a user tries to login to the portal, I should check whether this user already has a session active. If yes, I should not allow this user to login again. As in this user shou

  • Send the adobe form through webservices

    Hello all, i have a requirement in adobe form. When i click on submit button the total pdf form have to be sent through webservices and update as a string in a SAP ztable. so that i can retrieve the string and convert it into pdf again and reuse it.

  • Safari crashes my Macbook

    Hello, it's happening several times that when I leave my macbook working with all the apps opened and I come back the macbook doesn't reply anymore. I have to turn it off and then I always read a system log error message like this one: Sun Mar 15 19:

  • HLookup function in Essbase?

    <p>Yet another tough formula that needs to be translated in Essbasefrom Excel.<br><br>"HLOOKUP(K13,$K6:$DA7,2,0)"<br><br>Has anyone got any idea how to trick around?<br><br>Thanks.</p>

  • PO release starategy for 2 level ?

    hi experts I have query in Release starategy. Would like to create PO release for 2 levels. 1. Purchase HOD , if a total value is upto 100000, it should trigger PO HOD .(0-100000) 2.Managing director, if total value is more than 100000 it trigger onl