+ Reply to Thread
Results 1 to 5 of 5

Embedding a chart within a chart in Excel

Hybrid View

willist Embedding a chart within a... 07-19-2012, 10:06 AM
Andy Pope Re: Embedding a chart within... 07-19-2012, 10:54 AM
willist Re: Embedding a chart within... 07-19-2012, 11:23 AM
Andy Pope Re: Embedding a chart within... 07-19-2012, 11:28 AM
willist Re: Embedding a chart within... 07-19-2012, 11:40 AM
  1. #1
    Registered User
    Join Date
    07-19-2012
    Location
    Dallas, TX
    MS-Off Ver
    Excel 2010
    Posts
    13

    Embedding a chart within a chart in Excel

    Greetings,

    I have been writing a macro that converts a bunch of data into a graph. There are multiple sets of data all plotted against minutes. There is also a data series that just switches between 1 and 0. I would also like to display this on the graph, but mixed in with all the other data, since is is not "real" data. I would like to display this binary signal on the top of the graph. I have included a picture of what I would like it to look like. The picture that is included was the graph that I have already generated and then just pasted the oscillating signal on top of the graph with MS Paint. I would love to know how to do this from within excel.

    Any help would be appreciated.

    Kind Regards,
    Willis
    embeddedd graph.jpg

  2. #2
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,482

    Re: Embedding a chart within a chart in Excel

    Why not add it as another series?
    Cheers
    Andy
    www.andypope.info

  3. #3
    Registered User
    Join Date
    07-19-2012
    Location
    Dallas, TX
    MS-Off Ver
    Excel 2010
    Posts
    13

    Re: Embedding a chart within a chart in Excel

    Well the only reason I did not want to do that is because then it is plotted among the other data. If there was a way for me to shift that data all the way to the top I suppose that would work too.

    -Willis

  4. #4
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,482

    Re: Embedding a chart within a chart in Excel

    Isn't the position of the lines controlled by their Y values? In which case just use a Y value that is above your current data.

  5. #5
    Registered User
    Join Date
    07-19-2012
    Location
    Dallas, TX
    MS-Off Ver
    Excel 2010
    Posts
    13

    Re: Embedding a chart within a chart in Excel

    That is a good idea. I didn't even think about it. Thanks.

    You seem well versed in excel so I have another quick question for you. If I am using a macro to auto-generate a graph, how can I make it so that the macro works for any range of data, whether there are 10 or 500 entries.

    This is an example data series that I have now.
    ActiveChart.SeriesCollection(1).Name = "=""Power"""
    ActiveChart.SeriesCollection(1).Values = "=' Data '!$K$2:$K$1297"
    Is it possible to modify this to autorange the data?

    Thanks alot,
    Willis

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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