+ Reply to Thread
Results 1 to 5 of 5

Animated XY Chart?

  1. #1
    Forum Contributor
    Join Date
    10-05-2005
    Posts
    112

    Question Animated XY Chart?

    Hi,

    I am hoping to animate an XY chart in Excel and wondering how to go about it.... any starts would be much appreciated.

    The starting point would be 2 columns af data plotted via an XY chart - the loop would go:

    plot the first point (row1)
    delay in microseconds
    plot the second point (row2), keeping the first point
    If blank row is reached - stop.

    The end result is a chart full of points down to the last row.

    The data would be something like:

    10 45
    15 12
    81 32
    55 94
    27 27
    etc.....

    PS to moderator - sorry about the duplicate post - came up with a database error so I tried again - please delete the locked thread - thanks.
    Last edited by Cam; 07-05-2011 at 11:08 AM.

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

    Re: Animated XY Chart?

    You can use a named range to extend the data covered by a series.

    You will find examples of animated charts here
    http://chandoo.org/wp/
    http://www.excelhero.com/cgi-bin/mt/...ation&limit=20
    Cheers
    Andy
    www.andypope.info

  3. #3
    Forum Contributor
    Join Date
    10-05-2005
    Posts
    112

    Re: Animated XY Chart?

    Thanks Andy, just checked out your site - nice work .... :-)

    Not being a VBA bod, would you mind me asking how I might achieve what you described?

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

    Re: Animated XY Chart?

    The macro will update every second.

    Please Login or Register  to view this content.
    The named range CHTDATA gets the number of points to plot from cell E2

    =OFFSET(Sheet1!$B$2,0,0,Sheet1!$E$2,1)

    To how finer control over the time delay search for the SLEEP api function.

    The 2 blogs I posted have more detail on usage.
    Attached Files Attached Files

  5. #5
    Forum Contributor
    Join Date
    10-05-2005
    Posts
    112

    Re: Animated XY Chart?

    Thanks Andy, That's very nice of you - I will go and apply it to my application now and learn a bit :-)

+ 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