+ Reply to Thread
Results 1 to 5 of 5

How to populate legend of a sccater chart with custom values

  1. #1
    Registered User
    Join Date
    01-19-2017
    Location
    Chennai
    MS-Off Ver
    2013
    Posts
    3

    How to populate legend of a sccater chart with custom values

    Hi,

    This is my first question in excel forum. I have a table of data which I plan to plot in a scatter plot as follows

    Name Competency Performance
    baron 1 1
    davis 2 2
    dingan 2 2
    sarin 4 1

    I am plotting the happiness score in X axis and personality in Y axis. I need to name each plot. The data set has close to 200 names. If I name each data point then the graph becomes too cluttered. I am planning to name each data point in the legend which means the name of each data point in the legend shall be taken from a different column i.e name. Please let me know how this can be done. I have attached a screenshot of an example

    Regards,
    Anup



    excel.gif

  2. #2
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,832

    Re: How to populate legend of a sccater chart with custom values

    As far as I know, there is no way to use "custom" values in Excel's built in Legend object. Any approach that I would suggest would center around a "add a dummy series, format it as desired, and add custom data labels to that series" kind of thing. This kind of approach is illustrated here (http://peltiertech.com/double-legend-in-a-single-chart/ ) for a column "panel" chart, but should work just fine for an XY chart like you have. Your profile indicates that you have 2013, so you may not need Rob Bovey's add-in, since this custom data label functionality was added to Excel in 2013.
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  3. #3
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,920

    Re: How to populate legend of a sccater chart with custom values

    This sort of does what you want. I have a bunch of shapes (included a zip file) and, in my case they happen to be in C:\Users\dflak\Temp\Shapes.

    As a courtesy, I copied and pasted the shapes into Column D. The code goes through and assigns the shapes to the markers. I just noticed that I turned off the borders on only one of the shapes.
    Attached Files Attached Files
    One spreadsheet to rule them all. One spreadsheet to find them. One spreadsheet to bring them all and at corporate, bind them.

    A picture is worth a thousand words, but a sample spreadsheet is more likely to be worked on.

  4. #4
    Registered User
    Join Date
    01-19-2017
    Location
    Chennai
    MS-Off Ver
    2013
    Posts
    3

    Re: How to populate legend of a sccater chart with custom values

    @MrShorty: Thanks for the link. will check it out and update this post if it works

    @dflak: Thank you so much for the effort of bringing the values into an excel.That excel is exactly the stage where I am right now. If you turn on the legend you will find that in the legend the shapes have been assigned numbers present in Column B. What I was looking for was some method where the shapes are assigned values in column A i.e the names. Example: The Plus sign is currently assigned 1 in the legend. I want it baron.

  5. #5
    Registered User
    Join Date
    01-19-2017
    Location
    Chennai
    MS-Off Ver
    2013
    Posts
    3

    Re: How to populate legend of a sccater chart with custom values

    Got it. Thank you so much @MrShorty. The link is real good. So the trick is we need to create two graphs in the same sheet. One plot will have name and competency as parameters and the other will have competency and performance as parameters. We hide the legend of the first plot and hide the plot area of the second plot. this can be done by brining in transparency of legend as 0% and putting in solid fill. Nice hack btw. Thanks a lot guys

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Pivot Chart not displaying data label values for the first Legend label
    By zykkzxxy789077 in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 08-24-2016, 05:46 AM
  2. Auto pre-populate cells with data from key/legend.
    By QueenMab in forum Excel General
    Replies: 1
    Last Post: 06-17-2015, 12:26 AM
  3. Can the legend show values? (pie chart)
    By koli99 in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 07-18-2014, 07:07 AM
  4. [SOLVED] Table has Text Values, but Chart Legend changes them to 0 (zero)
    By yamalady in forum Excel Charting & Pivots
    Replies: 4
    Last Post: 05-07-2014, 06:57 AM
  5. Chart: only show legend elements with values
    By Brython in forum Excel Charting & Pivots
    Replies: 12
    Last Post: 12-04-2013, 07:01 AM
  6. [CHART] adding values to legend
    By TomBP in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 06-15-2010, 05:57 AM
  7. Creating a table of values in a pie chart legend
    By simmo86 in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 06-23-2009, 11:31 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1