+ Reply to Thread
Results 1 to 5 of 5

Struggling to create linechart with multiple series. Possibly requiring it to be dynamic.

  1. #1
    Forum Contributor
    Join Date
    03-31-2010
    Location
    Norway
    MS-Off Ver
    Excel 365
    Posts
    632

    Struggling to create linechart with multiple series. Possibly requiring it to be dynamic.

    Hi all,

    I always have a hard time creating these charts, but I've managed to retrace my steps from earlier projects.

    I want to create a chart which have a fixed start/end point at 09:31/16:00 for the X-values.

    I have two variable values, Low Time & High Time. These CAN happen at 09:31/16:00, but usually, they're somewhere inside that range.

    For the Y values, I have arbitrarily chosen 0 and 10. I just want a linear line between the Low Time and High Time. I've set up my raw data looking like this. It's possible it could have been done in another way:

    2.PNG

    Steps:

    1) Select range C22:J22

    2) Create 'recommended chart'. I choose line chart.

    3) Select chart and select data; "Add X-series" to chart. I here select C22:F22.

    Format axis: a) Change numbers to hours; b) Change min./max. values to 09:30 - 16:00.

    By the way - this step is weird. Sometimes, I can enter 09:30 and Excel automatically converts it to numbers. Other time, I have to enter 09:30 in a cell, convert that to a number and then copy and paste that into the settings. I'm not always able to enter it directly.

    Some more formatting and the chart is done.

    But what if I'd want to add say 50 rows worth of data to this chart?

    Is that even possible?

    I started doing it manually by 'Select Data' and 'Add Series". It's of course a cumbersome process.

    Thanks in advance for any pointers.

    Best regards,

    Elijah

    3.PNG
    Attached Files Attached Files

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

    Re: Struggling to create linechart with multiple series. Possibly requiring it to be dynam

    Your main problem with the current data layout is you have start and finish position on a single row.

    Consider using formula to rebuild a set of chart data.
    This will output all the data points in your data set.

    You would need to extend the formula and the range used in the chart if you want to add more records.
    Attached Files Attached Files
    Cheers
    Andy
    www.andypope.info

  3. #3
    Forum Contributor
    Join Date
    03-31-2010
    Location
    Norway
    MS-Off Ver
    Excel 365
    Posts
    632

    Re: Struggling to create linechart with multiple series. Possibly requiring it to be dynam

    Quote Originally Posted by Andy Pope View Post
    Your main problem with the current data layout is you have start and finish position on a single row.

    Consider using formula to rebuild a set of chart data.
    This will output all the data points in your data set.

    You would need to extend the formula and the range used in the chart if you want to add more records.
    Hi, Andy,

    Thank you for taking a looking and providing a potential solution!

    Is it not possible to handle this with all the data from one day on a single row? Something similar to this layout was actually suggested to me in the past on these forums. Prior to that, I had it set up differently with 2 rows per day and 1 row per time - 1 row per price.

    If not - I may simply have to go with your solution - which admittedly does work.

    Best,

    Elijah

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

    Re: Struggling to create linechart with multiple series. Possibly requiring it to be dynam

    Is it not possible to handle this with all the data from one day on a single row?
    Yes i is but then you are back to your original problem of spending a vast amount of time on defining the data points of each series and then formatting.

    Was that layout suggested in order to generate this chart? Seems a strange layout for any chart given how excel expects the data to be laid out for charting.

  5. #5
    Forum Contributor
    Join Date
    03-31-2010
    Location
    Norway
    MS-Off Ver
    Excel 365
    Posts
    632

    Re: Struggling to create linechart with multiple series. Possibly requiring it to be dynam

    Quote Originally Posted by Andy Pope View Post
    Yes i is but then you are back to your original problem of spending a vast amount of time on defining the data points of each series and then formatting.

    Was that layout suggested in order to generate this chart? Seems a strange layout for any chart given how excel expects the data to be laid out for charting.
    Correct. I had a different layout prior to that.

    Anyway, I decided to just add in this manually. Took me 30 minutes or so, but now I'm done. If I were to do this a LOT - I would have to find a more efficient method. But this works for now.

+ 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. Struggling with dynamic filter
    By jancliff in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 11-07-2018, 04:21 PM
  2. Create a dynamic list based on multiple dynamic factors.
    By sabin348 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 08-07-2015, 11:05 AM
  3. dynamic chart using multiple series
    By flossdraad in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 08-04-2012, 06:37 AM
  4. Can I create a dynamic chart with a dynamic number of series?
    By SG2 in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 06-24-2011, 08:44 AM
  5. [SOLVED] Dynamic Charting of Multiple Series Data
    By k_excel in forum Excel General
    Replies: 2
    Last Post: 01-12-2009, 01:08 PM
  6. [SOLVED] How do I create a dynamic series of months in excel?
    By TNH in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-17-2006, 11:30 AM
  7. [SOLVED] Adding multiple series to a dynamic chart
    By [email protected] in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-11-2005, 05:05 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