ABOUT ME

-

Today
-
Yesterday
-
Total
-
  • How To Add A Legend On Excel For Mac
    카테고리 없음 2020. 2. 10. 07:48
    1. How To Add A Legend On Excel For Mac Download
    2. How To Add A Legend

    Click the menu entry corresponding to the location where you want the legend to appear. You can display the legend at the top, bottom, left or right of the chart; you can also overlap it over the chart, either on the left or on the right side. Test various positions until you find the ideal one.

    How To Add A Legend On Excel For Mac

    ., Bar Graph, or: Each legend key represents a single. For example, in a column chart, there might be a blue legend key that reads Favorite Snacks Votes next to it.

    The blue colors in the chart refer to the votes for each entry in the Snacks series. Pie Chart or Circle Graph: Each legend key represents only a portion of one data series. To use the same example from above, but for a pie chart, every cut of the pie is a different color that represents each 'Snacks' entry. Every portion of the pie is a different size of the whole circle to represent the vote differences taken from the 'Votes' series.

    Most charts use some kind of legend to help readers decode the charted data. Excel charts have legends by default, and these legends have a great deal of flexibility (as well as some frustrating constraints). The best legend is actually no legend at all. A legend by its very nature is somewhat separated from the chart, so a reader must move his eyes back and forth to decode the chart. Placing labels directly on or adjacent to the plotted data is more effective, but it can be more work, and for charts with a lot of data that’s entangled together, data labels may not be practical. Legend Formatting The default formatting for the borders in a chart is black. The plot area is also filled with a muddy gray color, but I’ve removed that already.

    That’s so many dark lines that I forget I’m supposed to look there for some data. This can be improved by removing the outermost border and using a light gray for the plot area and legend borders. In fact, that’s still too many visible lines, but I’ll use the light gray in this article so the outlines of the plot and legend are clear.

    Without any extraneous borders at all, the data stands out in the chart. Ah, now that’s why we made a graph, to show the data. The problem with a legend is that it’s somewhat removed from the data. You can move the legend so it’s more integrated into the chart.

    Just click on the legend, and drag it by its edges to a new location. You could even tweak the colors in the legend, to make the legend blend in. Of course, the best legend at all is no legend. Identify the data instead with labels attached to the data series. The labels are a bit close together, but matching their text colors to the series colors improves the separation between adjacent labels.

    Legend Placement The Excel 2003 Format Legend dialog is shown below, with the Placement tab visible. There are five predefined placements, and the default placement is Right. Here is a chart with the legend in the default Right position. This chart has its legend in the awkward Left position.

    If the value axis were on the opposite side of the chart, this would not be so awkward. This legend is at the top of the chart. This legend is at the bottom of the chart.

    This is probably less effective than the top position, because the horizontal axis comes between the legend and the chart it describes. This legend is in the least useful corner position. Even Excel knows this is an untenable position. When this position is selected, the chart scrunches up into the opposite corner, and the chart’s text autoshrinks to 5.5 pt. When you change the font to a legible size, like 8 pt, the legend moves to near the right position and the chart itself expands to its original size.

    The default placements, at least right and top, are okay. But Excel leaves too much space around the legend and between the legend and the rest of the chart. I start with a default legend position, then reposition and resize the legend to suit my tastes. Automatic Resizing and Rearranging of the Legend Let’s return to the the Top position to see a few characteristics of the legend. The legend entries are evenly distributed across the legend. Suppose the labelsin the legend entries different lengths. All of the entries move to maintain a nice distribution.

    If the legend entries are about the same width, but the chart itself cannot accommodate them all, Excel wraps them to fit. Manually Resizing and Rearranging the Legend When you select the legend, its edges and corners are highlighted with the familiar handles that allow resizing. Drag the legend by its edges to move it to a new location. When you begin resizing the legend, the boundaries around the legend entries are displayed.

    Mac

    As this legend is made narrower, the first legend entry wraps to two lines. The other legend entries assume the same dimensions as the largest one, and to accommodate the taller entries, the last one is pushed below the bottom edge of the legend. When the mouse is released, only five entries are visible. The legend has to be stretched downward to provide room for the last entry. Now they all fit, but the spacing doesn’t look very nice. Unless all legend entries have to wrap, it’s probably better to make the legend wide enough to prevent wrapping.

    As soon as the legend is being manually resized, all legend entries assume the same dimensions. The other five entries in this legend forget that they had resized themselves to accommodate the longer “one hundred” label.

    This legend has been rearranged into a 2 row by three column grid. This legend has been resized to a 3 row by 2 column grid. By default, the entries are listed in order, filling rows first, then columns. For example, the entries for one and two are side by side.

    If you’d like the entries to be listed in order filling columns then rows, with one above two above three, you need to rearrange the order of series in the chart. Series one is plotted first, four second, two third, five fourth, and so on. Follow up posts in the blog:, which will feature formatting tricks enabled by the individual entries in a chart legend, which will describe some of the intricacies of legend entry order, and, which shows a dummy series approach to adding multiple legends in a chart.

    Add

    Jon, I have found difficulty in ordering legend entries via automation in VBA, especially if the chart has a dual Axis. I have macros that update the legend if an option box is selected to display the series. It may be a limitation of Excel 2003, but the series for one axis will be grouped first, then the series for the second axis. When selecting a series object, and trying to re-order the series on the Series Order Tab in the Format Data Series dialog box, only series for the axis in which it is ascribed to can be re-ordered. Perhaps this is a feature that I should learn to embrace. I utilize your techniques in setting up Dummy Series in the construction of charts, I wish there was a way to select an option in a dialog box to tell Excel to omit these series from Chart Legends.

    This would make macros that customizing legends easier, especially in dual-axis charts. Thank you for sharing in all of these posts, and for personally helping me out in other posts. Hi Jerry – Working with legend entries in VBA is a challenge, because there is not a linkage between a series and its legend entry.

    We have suggested this for future developments of Excel by Microsoft. A legend object model linked to the series collection would be outrageous.

    Reordering is actually only possible within a chart group, which is a collection of series of a given type and on a given axis. This is more constrained than you mentioned, but if you’ve never tried this on a combination chart, you would not have run up against it. I talk about chart groups in a future post, the one talking about legend entry order. Wednesday, I think. SpeedBall says.

    My data required me to put the labels at the start of the series (the series are converging in the end) which made the data labels to overlay on themselves. I’ve added following bit of code for it to decide on its own what is the best place to put labels (start or end)decision is based on stdev of the first and last data values.

    Dim xrange1, xrange2 As Variant If ActiveChart Is Nothing Then MsgBox 'Select a chart and try again.' Hi Jon, I’m struggling to understand how legend objects resize themselves automatically. I’ve been trying to use VBA to position my legend, but I have noticed that before I move the legend it has a certain width, and that width changes after I move the legend without me changing it (the legend.width). Is there some setting that I’ve missed to turn this “feature” off? I’ve also noticed that sometimes the plot area is also changed after I change some property of the chart or chartobject object in VBA. I checked out events, but could see nothing that might apply.

    Thanks for any help / comments / suggestions, Eric. Mari-Jo says.

    I have a variable line graph with Legend. Its reading from H11:S16 (12 months data).

    For H16:S16, this row’s data might varies. A radio button is available to select either Product A or Product B. I have no problem to read and display the Product A data as it will show all 6 lines of data.

    But when I select Product B, it will be 1 line lesser than Product A. When selecting Product B, my graph is showing a “na” in the legend. How can I / How do I need to not display the “na” when I select on Product B? Thank you very much for your helpful postings. Using Pivot Chart graphics as an example, what if you have 300 data values in your legend instead of only 6? It does not seem to be possible to enlarge the legend box’s perimeter enough to view all of them. Is there a way to be able to view all of them or scroll through them somehow?

    In Pivot Tables, one can double-click on a cell and learn what data is feeding into that cell. Is there a similar way to click on one of the illustrative lines in the Pivot Chart and see what data it is composed of?

    How To Add A Legend On Excel For Mac Download

    (This might also be an alternate way to view the data values that are not visible in the legend as described above.) Thank you very much for trying to help with this! Hessel – That’s actually a clever approach.

    It’s not as robust as I’d like: when I extend a series, the labels don’t keep up, so I need to delete the labels, add them back, and reassign the name. And if I close and reopen the workbook, I have to repeat this process.

    How To Add A Legend

    (Only tested in 2016, which is not quite as robust as 2013 in many charting features.) I usually just run a small VBA routine, as described in several places: Label Last Point – Updated Add-In My include an updated and very robust version of the labeling routine.

Designed by Tistory.