+ Reply to Thread
Results 1 to 3 of 3

Can I have multiple charts ref the same legend and formatting?

  1. #1
    Forum Contributor
    Join Date
    06-22-2011
    Location
    somerset
    MS-Off Ver
    365
    Posts
    330

    Can I have multiple charts ref the same legend and formatting?

    I have 2 scatter (may do a 3rd) charts that reference coordinates in 3D space.
    I am referencing 3 tables as series'. Matal parts, Plastic parts, Fittings.
    Becaues the scatter charts reference the same tables with the same items the onle difference being one chart refferences the X and Z columns and one refferences the Y and Z columns I would like to make both charts use the same format settings and display only one legend for both charts.
    Is this even possible?
    Sub Reputation()
    Dim Problem as Variant
    Dim Reputation as Integer
    For Each Problem in Forum.Threads
        If Problem.Title = "*[Solved]*" and Solver.Name = "Leon V (AW)" Then Reputation = Reputation + 1
    Next Problem
    End Sub

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2411
    Posts
    26,673

    Re: Can I have multiple charts ref the same legend and formatting?

    Your signature is very clever but it took me a minute to realize it was not part of your question.

    You cannot have a single legend for two charts.

    I would make the first chart, then copy it. Now you have two charts with the same formatting. Then for the second chart, Chart Design > Select Data and adjust from the X to the Y data (or click the chart and drag the selection to change it).

    But the data in the two charts is now different. Are you saying that you want a single legend that lists X, Y, and Z? I don't think that's going to be possible. You can't show data in a legend that is not in the chart. If you add the data but make it invisible, then the legend will also show it as invisible, which doesn't help you.

    The other option is to manually craft a legend as an image after the formatting in your charts is settled.

    We might have other ideas if you could attach as sample file.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Forum Contributor
    Join Date
    06-22-2011
    Location
    somerset
    MS-Off Ver
    365
    Posts
    330

    Re: Can I have multiple charts ref the same legend and formatting?

    The legend lists Metal parts, Plastic parts, etc. The X, Y & Z are used to place the points on the scatter plot.
    I am thinking this might be a job for VBA. Make a 3rd chart that only shows the legend or maybe an active X object and have it linked to an on change comand to copy it's formatting and source ranges to the the other 2 charts.
    I don't want to use images or anything static because A user styles/ colour pallets will change the charts but not the images, B) it is too easy to go wrong if any data changes.

    If I get some spare time I will upload a dummy sample. I can't use the actual files because it involves aircraft data.

+ 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. Legend issue with Pivot Charts
    By ppritchard in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 04-05-2022, 02:31 AM
  2. Legend in Pie Charts
    By aussiegirl in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 06-17-2012, 07:07 AM
  3. Separate legend for multiple pie charts?
    By kirrwed in forum Excel General
    Replies: 1
    Last Post: 12-09-2011, 12:52 PM
  4. Charts: Legend problem with variable length
    By LouSifer in forum Excel Charting & Pivots
    Replies: 10
    Last Post: 11-11-2008, 07:28 AM
  5. Legend Formatting In Charts
    By skizz135 in forum Excel General
    Replies: 1
    Last Post: 08-07-2008, 02:45 PM
  6. [SOLVED] Increase size of Legend Key in Pie Charts
    By Mark in forum Excel Charting & Pivots
    Replies: 4
    Last Post: 08-08-2006, 02:25 PM

Tags for this Thread

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