Dynamic Data Point Markers in a graph/chart

SerenityNetworks

Board Regular
Joined
Aug 13, 2009
Messages
131
Office Version
  1. 365
Platform
  1. Windows
I'm plotting temperature, wind speed, and wind direction by time. For the wind direction, I'd like to display an arrow or icon that matches the wind direction. For example, if the wind is blowing to the east then I'd like a right pointing arrow on the chart. I'd like to do this for the 16 principle points of the compass. Is this possible in Excel using standard functionality? If so, will someone point me to instructions or step me through how to do it?

Thanks in advance,
Andrew
 

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
It's "standard" functionality but tricky and not automatic. Here's what you need to do.

1. Make yourself the 16 arrows you need by drawing arrow autoshapes in the worksheet.

2. Plot the points, using any old marker.

3. For each point:

A. Copy the arrow you need based on the direction it represents.

B. Select the data point (two single clicks: the first click selects the series of points, the second click selects the individual point).

C. Paste using Ctrl+V.

If you have a lot of these, it can be automated with VBA. I wrote a tutorial a decade ago, but I can't seem to locate it. If you're interested, maybe I can reproduce that old topic.
 
Upvote 0
Not exactly as requested. I think you wanted something close to this: http://robslink.com/SAS/democd11/isabel2.htm

I came up with this:

br84LPW.png


I can't give sixteen points on the wind direction, but I came up with eight.

[TABLE="width: 320"]
<tbody>[TR]
[TD="class: xl64, width: 64"]sec[/TD]
[TD="class: xl64, width: 64"]knots[/TD]
[TD="class: xl64, width: 64"]knots_2[/TD]
[TD="class: xl64, width: 64"]Direction[/TD]
[TD="class: xl65, width: 64"]Marker[/TD]
[/TR]
[TR]
[TD="class: xl66, align: right"]5[/TD]
[TD="class: xl66, align: right"]3[/TD]
[TD="class: xl66, align: right"]3[/TD]
[TD="class: xl66, align: right"]5[/TD]
[TD="class: xl67"]↖[/TD]
[/TR]
[TR]
[TD="class: xl66, align: right"]10[/TD]
[TD="class: xl66, align: right"]6[/TD]
[TD="class: xl66, align: right"]6[/TD]
[TD="class: xl66, align: right"]6[/TD]
[TD="class: xl67"]↗[/TD]
[/TR]
[TR]
[TD="class: xl66, align: right"]15[/TD]
[TD="class: xl66, align: right"]8[/TD]
[TD="class: xl66, align: right"]8[/TD]
[TD="class: xl66, align: right"]1[/TD]
[TD="class: xl67"]←[/TD]
[/TR]
[TR]
[TD="class: xl66, align: right"]20[/TD]
[TD="class: xl66, align: right"]9[/TD]
[TD="class: xl66, align: right"]9[/TD]
[TD="class: xl66, align: right"]3[/TD]
[TD="class: xl67"]→[/TD]
[/TR]
[TR]
[TD="class: xl66, align: right"]25[/TD]
[TD="class: xl66, align: right"]13[/TD]
[TD="class: xl66, align: right"]13[/TD]
[TD="class: xl66, align: right"]4[/TD]
[TD="class: xl67"]↓[/TD]
[/TR]
[TR]
[TD="class: xl66, align: right"]30[/TD]
[TD="class: xl66, align: right"]17[/TD]
[TD="class: xl66, align: right"]17[/TD]
[TD="class: xl66, align: right"]7[/TD]
[TD="class: xl67"]↘[/TD]
[/TR]
[TR]
[TD="class: xl66, align: right"]35[/TD]
[TD="class: xl66, align: right"]20[/TD]
[TD="class: xl66, align: right"]20[/TD]
[TD="class: xl66, align: right"]7[/TD]
[TD="class: xl67"]↘[/TD]
[/TR]
[TR]
[TD="class: xl66, align: right"]40[/TD]
[TD="class: xl66, align: right"]18[/TD]
[TD="class: xl66, align: right"]18[/TD]
[TD="class: xl66, align: right"]3[/TD]
[TD="class: xl67"]→[/TD]
[/TR]
[TR]
[TD="class: xl66, align: right"]45[/TD]
[TD="class: xl66, align: right"]17[/TD]
[TD="class: xl66, align: right"]17[/TD]
[TD="class: xl66, align: right"]1[/TD]
[TD="class: xl67"]←[/TD]
[/TR]
[TR]
[TD="class: xl66, align: right"]50[/TD]
[TD="class: xl66, align: right"]10[/TD]
[TD="class: xl66, align: right"]10[/TD]
[TD="class: xl66, align: right"]1[/TD]
[TD="class: xl67"]←[/TD]
[/TR]
[TR]
[TD="class: xl66, align: right"]55[/TD]
[TD="class: xl66, align: right"]8[/TD]
[TD="class: xl66, align: right"]8[/TD]
[TD="class: xl66, align: right"]8[/TD]
[TD="class: xl67"]↙[/TD]
[/TR]
[TR]
[TD="class: xl66, align: right"]60[/TD]
[TD="class: xl66, align: right"]8[/TD]
[TD="class: xl66, align: right"]8[/TD]
[TD="class: xl66, align: right"]2[/TD]
[TD="class: xl67"]↑[/TD]
[/TR]
[TR]
[TD="class: xl66, align: right"]65[/TD]
[TD="class: xl66, align: right"]3[/TD]
[TD="class: xl66, align: right"]3[/TD]
[TD="class: xl66, align: right"]5[/TD]
[TD="class: xl67"]↖[/TD]
[/TR]
</tbody>[/TABLE]

I converted the wind direction to an integer between 1 and 8. The eight arrows come from Insert > Symbols > Symbol > Subset:Arrows. The formula in the rightmost column is:

=CHOOSE(E3,"←","↑","→","↓","↖","↗","↘","↙")

I chose a line graph but a scatter plot works as well. I selected the three leftmost columns and inserted a chart, both series with markers.

For one series I added Data Labels: Above to show the wind speed.

This method only works in Excel 2013 and later. For the second series, I added Data Labels centered on the point markers. I chose Label Options > Label Contains: Value From Cells. In the range selection box that popped up, I selected the cells with the arrow symbols. The chart is 3 x 4 inches, I chose 14 pt Calibri Bold as the font face, with a blue color. The font choice is important:

ZTLF3fT.png


I then formatted the two series to have no lines and no markers.
 
Last edited:
Upvote 0
The actual formula for the CHOOSE function should probably go around the compass rose:

=CHOOSE(E3,"←","↖","↑","↗","→","↘","↓","↙")
 
Upvote 0
Thank you Jon and ThisOldMan. I'm trying to stay away from VBA in this project, if at all possible, so I'm going to give ThisOldMan's solution a whirl.

Yes, you are exactly right, something like the hurricane graph would be ideal. But I'm willing to go with something like the solution you presented. Using the eight points will be sufficient for now (and maybe forever). If I want more, I might look into creating a custom font that is stored with the workbook. Thank you for the detailed instructions. Following those steps will make the implementation quite easy. I don't think I would have ever thought of using font symbols for the display. Now that's what I call creative.

Thanks again,
Andrew
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top