+ Reply to Thread
Results 1 to 9 of 9

Single line graph from hamster data

  1. #1
    Registered User
    Join Date
    12-12-2008
    Location
    UK
    Posts
    8

    Single line graph from hamster data

    Hi I'd like to produce a single line graph from several rows of data eg.

    25 24 34
    12 37 89
    93 56 43

    but I always get three series or three lines.

    If it were all in one row that would be ok but the data is being passed from a vb.net 2d array.

    Any pointers would be great.

    (the data set is much larger and represents timing info from a hamster wheel)

    Thanks

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Single line graph from hamster data

    How are you getting the data into Excel?
    If posting code please use code tags, see here.

  3. #3
    Valued Forum Contributor
    Join Date
    04-12-2012
    Location
    India
    MS-Off Ver
    Excel 2007, 2010, 2013, 2016, 2019, Office 365, Google Spreadhsheet
    Posts
    640

    Re: Single line graph from hamster data

    Hi Greenwood,

    Welcome to the Forum.

    As your data is in three different columns, so there will be three different series. However, If you take all of them in singly column or row then you have have the single line in graph.

    See Below Image:

    Chart.PNG
    Thanks,
    Anil Dhawan


    Click *Add Reputation to say "Thanks" and don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved) if you are satisfied.

    Don't stop when you are tired. STOP when you are done!

  4. #4
    Registered User
    Join Date
    12-12-2008
    Location
    UK
    Posts
    8

    Re: Single line graph from hamster data

    I'm passing a 2d array to a range.

    The reason that I'm using a 2d array rather than a 1d is that there are going to be a lot of values in the real application (about 100,000 to 300,000) so a single row or column will not be sufficient.

    Please Login or Register  to view this content.
    Last edited by greenwood; 04-17-2015 at 07:25 AM.

  5. #5
    Registered User
    Join Date
    12-12-2008
    Location
    UK
    Posts
    8

    Re: Single line graph from hamster data

    I'm passing a 2d array to a range.

    The reason that I'm using a 2d array rather than a 1d is that there are going to be a lot of values in the real application (about 100,000 to 300,000) so a single row or column will not be sufficient.

    Please Login or Register  to view this content.

  6. #6
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Single line graph from hamster data

    Can you split the array?

  7. #7
    Registered User
    Join Date
    12-12-2008
    Location
    UK
    Posts
    8

    Re: Single line graph from hamster data

    Yes I think so. Would that be a help in getting a large amount of values into excel.

  8. #8
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Single line graph from hamster data

    It would help getting the data in one column/row which is what you would need for a single line graph.

    By the way, why is the data in a 2d array anyway?

  9. #9
    Registered User
    Join Date
    12-12-2008
    Location
    UK
    Posts
    8

    Re: Single line graph from hamster data

    I decided on a 2d array because if I use a 1d array and pass it to excel as a single row or column there would not be enough cells in a single row or column to hold all the data samples.

    The data is, believe it or not, coming from a hamster wheel - well an opto sensor on an eight segment disc attached to the wheel.

    So if hammy is doing 4 rev/sec

    4X8X60=1920 timings per minute

    =1920x60x12= 1,382,400 timings to be stored in a 12 hour period.

    All this is not fixed in granite as it's a project under development.

    I can see that I may have to do a more data processing in the vb.net prog before passing to excel to get my fancy graphs. Just wanted to get it in excel early as vb.net is something I am still weak on.

+ 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. [SOLVED] Generate a line (X/Y) graph from a single formula instead of a data set
    By Jose Macieira in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 09-06-2013, 09:06 AM
  2. Replies: 0
    Last Post: 03-26-2013, 08:38 PM
  3. Colouring of single line graph
    By taniakoshi in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 07-03-2012, 08:12 AM
  4. [SOLVED] charting a single bar graph on one line showing continuous info
    By Debidjew in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 04-10-2006, 11:20 AM
  5. [SOLVED] plotting a single line graph
    By plotting graphg in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 02-28-2005, 07:30 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