+ Reply to Thread
Results 1 to 11 of 11

Help creating an animated bar chart.

  1. #1
    Registered User
    Join Date
    06-01-2018
    Location
    Canterbury, United Kingdom
    MS-Off Ver
    Office 2016
    Posts
    4

    Help creating an animated bar chart.

    I would like to make a bar chart that has a control panel that allows the chart to change based on time.

    Data visualisation.png

    My data are similar to the above and all I want the chart to have is 2 bars corresponding to Right and Left, that when you press play the graph moves to the next time point (Next rows) and so on until the data has finished.

    I don't mind how this is done, but any help would be appreciated.

    If a similar idea has been discussed or there is a particular name for what I want to do please let me know.

    Thanks in advance.
    Last edited by toddy17992; 06-01-2018 at 09:48 AM. Reason: visual

  2. #2
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,920

    Re: Help creating an animated bar chart.

    I doubt anyone is going to take the time to recreate the data you already have. Providing a sample workbook always increases the chances that someone will pick up the quest.

    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.
    One spreadsheet to rule them all. One spreadsheet to find them. One spreadsheet to bring them all and at corporate, bind them.

    A picture is worth a thousand words, but a sample spreadsheet is more likely to be worked on.

  3. #3
    Registered User
    Join Date
    06-01-2018
    Location
    Canterbury, United Kingdom
    MS-Off Ver
    Office 2016
    Posts
    4

    Re: Help creating an animated bar chart.

    Thanks for this, I have now attached a sample data set with what I want in the document.
    Attached Files Attached Files

  4. #4
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: Help creating an animated bar chart.

    How about this which uses a macro.
    HTH
    Regards, Jeff

  5. #5
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,920

    Re: Help creating an animated bar chart.

    Nice implementation, Jeff. It did not work for me unless I stepped through the code manually. Even inserting a Doevents didn't do it. I had to modify your code to force a chart refresh by activating it (ugh!)

    Please Login or Register  to view this content.

  6. #6
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: Help creating an animated bar chart.

    Thanks dflak. Weird why it didn't work for you, but thank you for posting an alternative which hopefully can help the OP.

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

    Re: Help creating an animated bar chart.

    Newer versions of excel take a few more doevents to have the save effect.

    I also prefer the Sleep to Application.Wait to provide finer control over the animation.
    Attached Files Attached Files
    Cheers
    Andy
    www.andypope.info

  8. #8
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: Help creating an animated bar chart.

    Thank you Andy for the additional information.

  9. #9
    Registered User
    Join Date
    06-01-2018
    Location
    Canterbury, United Kingdom
    MS-Off Ver
    Office 2016
    Posts
    4

    Re: Help creating an animated bar chart.

    Thank you for this it is great.
    One question regarding the Sleep to application in the "1232897.xlsm" file. My actual data set was recorded at 1000 Hz and has 1856 data points, how do make the playback fast enough that I doesn't take a few minutes to play through the full dataset. I have tried changing the sleep to 1 but it is still pretty slow. If this is the best that can be done I will probably just average the data to make a smaller data set.

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

    Re: Help creating an animated bar chart.

    reduce the frequency of the loop by adding a step value

    Please Login or Register  to view this content.

  11. #11
    Registered User
    Join Date
    06-01-2018
    Location
    Canterbury, United Kingdom
    MS-Off Ver
    Office 2016
    Posts
    4

    Re: Help creating an animated bar chart.

    That's brilliant thanks.

+ 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. Replies: 4
    Last Post: 11-09-2013, 03:52 PM
  2. [SOLVED] Animated line chart
    By Dudgeon in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-04-2013, 01:28 PM
  3. Animated line chart
    By lovethepirk in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 08-12-2013, 06:01 AM
  4. Animated images on a chart
    By j_Southern in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 01-27-2012, 10:44 AM
  5. Animated images on a chart
    By j_Southern in forum Excel General
    Replies: 0
    Last Post: 01-27-2012, 10:44 AM
  6. Animated XY Chart?
    By Cam in forum Excel Charting & Pivots
    Replies: 4
    Last Post: 07-06-2011, 05:48 AM
  7. Animated Excel chart.....
    By Cam in forum Excel General
    Replies: 8
    Last Post: 03-29-2011, 02:45 PM
  8. Chart Animated Sine Wave
    By TEAM in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 08-05-2005, 05:35 PM

Tags for this Thread

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