+ Reply to Thread
Results 1 to 3 of 3

Wind barb time series chart

  1. #1
    Registered User
    Join Date
    09-10-2019
    Location
    Canada
    MS-Off Ver
    Office16
    Posts
    2

    Wind barb time series chart

    Hi There,

    I am trying to run a macro that will plot wind data in a time series. I want the chart series to be formatted such that each point is an arrow, pointing in the direction the wind is coming from. Along with the arrows position on the Y axis for wind speed, I want the arrows fill color to represent the wind speed. Excel forum won't let me attach photos, but there is a copy of what the chart should look like in the attached .xls file. I had it somewhat working, but I can't get it to work anymore.

    I have used a previous thread as a starting point for this: excelforum.com/excel-charting-and-pivots/929410-multiple-wind-speed-and-direction-arrow-plots-on-an-xy-scatter.html

    As a new VBA user, I am having trouble editing the code from the above link to make my macro work smoothly. My understanding is that for each point in the data series, the code alters the rotation (from numwindDir column) and color (conditional formatting of windSpeed column) of the arrow (shape) that is in the charts tab (scroll to left side of charts). It then copies the shape, and should paste it to the specific data point in the series. The issue seems to be arising somewhere in the copy/ paste of the shape. Here is the code:

    Please Login or Register  to view this content.
    I bolded the line of code that has the error.

    Data is manually put into ChartData tab. I have highlighted the columns relating to the wind plot on the Charts tab. Any help would be super appreciated, even if its just comment on the syntax of the copy/paste code, maybe there's an obvious error that my untrained eye isn't picking out.

    Thanks so much!

    dan
    Attached Files Attached Files

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,398

    Re: Wind barb time series chart

    Administrative Note:

    Welcome to the forum.

    We would very much like to help you with your query, however you need to include code tags around your code.

    Please take a moment to add the tags. Posting code between tags makes your code much easier to read and copy for testing, and it also maintains VBA formatting.

    Please see Forum Rule #2 about code tags and adjust accordingly. Click on Edit to open your post, then highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here

    (Note: this change is not optional. As you are still new here, I have done it for you this time.)
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    09-10-2019
    Location
    Canada
    MS-Off Ver
    Office16
    Posts
    2

    Re: Wind barb time series chart

    Thanks Ali, my apologies, this is all new to me!

    Best,

    Dan

+ 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: 5
    Last Post: 06-14-2022, 02:59 AM
  2. [SOLVED] Pick Values from Wind Data with uneven time series
    By ColmA in forum Excel General
    Replies: 2
    Last Post: 08-28-2014, 07:21 AM
  3. [SOLVED] Time series line chart
    By Mroy in forum Excel Charting & Pivots
    Replies: 4
    Last Post: 11-08-2013, 06:56 AM
  4. Replies: 1
    Last Post: 08-16-2013, 05:25 PM
  5. Shading Between Two Time Series on an XY chart
    By SDruley in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 02-04-2013, 05:51 AM
  6. Chart a time series?
    By SueWithQuestion in forum Excel Charting & Pivots
    Replies: 6
    Last Post: 07-13-2011, 08:19 AM
  7. Wind Rose Chart
    By ranallima in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 08-05-2005, 12:05 AM

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