+ Reply to Thread
Results 1 to 6 of 6

Charting two line graphs with different time axes on the same graph

  1. #1
    Registered User
    Join Date
    11-18-2021
    Location
    Asia
    MS-Off Ver
    2013
    Posts
    3

    Charting two line graphs with different time axes on the same graph

    Hi all,

    I am looking to plot 2 line graphs on the same time axes
    However both line graphs are on different time scales

    The first data entry is as such

    Time [ms] Value
    0 0
    37 3.922717
    74 8.932349
    111 12.663166
    148 13.619799
    185 13.995856
    222 16.022245
    259 18.269735
    296 20.096157
    333 20.182049
    370 18.10021
    407 15.283295
    444 12.283627
    481 9.574662
    518 7.610082
    555 6.153582
    592 4.747375
    629 2.410727

    The second is
    Time [ms] Value
    0 0
    27.5 -0.639343
    55 -0.5329
    82.5 0.34737
    110 0.951797
    137.5 1.74881
    165 3.26972
    192.5 6.427589
    220 9.553027
    247.5 11.930308
    275 13.319993
    302.5 14.178011
    330 14.39724
    357.5 13.97062
    385 13.023582
    412.5 11.489367
    440 9.527091
    467.5 6.642268

    As can be seen, the first line graph goes to 629ms, whilst the second goes to 467.5ms, as such trying to combine both graphs with the current data points would result in inaccurate combined line graphs

    How would I combine both line graphs on a similar time scale proportionately?

    Thank you

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

    Re: Charting two line graphs with different time axes on the same graph

    If you use an xy-scatter chart you can plot each series with it's own x and y values on the same chart
    Attached Files Attached Files
    Cheers
    Andy
    www.andypope.info

  3. #3
    Registered User
    Join Date
    11-18-2021
    Location
    Asia
    MS-Off Ver
    2013
    Posts
    3

    Re: Charting two line graphs with different time axes on the same graph

    Dear Andy Pope,

    Wow that was excellent

    Could I ask, how did you manage to join the dots between the scatter plots?

    Thank you,

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

    Re: Charting two line graphs with different time axes on the same graph

    I chose the xy-scatter chart with dots and lines.

    You can also format a dot only series and set the Line style and format as required

  5. #5
    Registered User
    Join Date
    11-18-2021
    Location
    Asia
    MS-Off Ver
    2013
    Posts
    3

    Re: Charting two line graphs with different time axes on the same graph

    Dear Andy,

    That's brilliant!

    Thank you, could I just ask, would you happen to know how to shade the area between the two lines on excel?

    If so that would be wonderful

    Thank you

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

    Re: Charting two line graphs with different time axes on the same graph

    You need to use approach as described here
    https://peltiertech.com/fill-under-b...n-excel-chart/

+ 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. Line Graph on 2 Axes
    By CJordani in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 07-02-2012, 08:14 AM
  2. Excel 2007 : Create a line graph with full control over axes?
    By Spankenstein in forum Excel General
    Replies: 0
    Last Post: 01-19-2012, 09:50 AM
  3. Stacked Bar Graphs with dual axes and a line graph.
    By kmt1984 in forum Excel General
    Replies: 2
    Last Post: 07-14-2010, 06:56 AM
  4. text boxes that label axes in line/scatter graphs
    By Peg in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 08-09-2006, 04:55 AM
  5. Custom Line Graph on 2 axes help
    By nevs in forum Excel Charting & Pivots
    Replies: 4
    Last Post: 10-27-2005, 10:29 AM
  6. complete a line in the middle of a graph to meet both X and Y axes
    By Naveen in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 10-17-2005, 04:05 PM
  7. adding another axes with line graph
    By thongtran in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 09-09-2005, 05:05 PM
  8. [SOLVED] Shading only part of the area between the axes in a 2D line graph.
    By Mzee in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-06-2005, 02:06 PM

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