Label coordinates in Scatter plot

ajaysomasi

New Member
Joined
Mar 6, 2017
Messages
25
Hi, I'm trying to plot a scatter chart and need to know how to label each coordinate.. I have the following problem.

I have different regions, Middle East, Asia, Europe.. I have a number of cities in each category (upto 20) and the number of cities keep changing based on input..

I have a requirement to plot cities by region.. Eg. ME cities I have triangle coordinates, Asia rectangular and Europe Circle to differentiate cities of each region.. I now need to label cities as well...

While plotting cities by region, I have the series name as Middle East and pulled all X,Y coordinates of cities lying in Middle East. But now, I am forced to use text box to label each city..

Is there any way I can differentiate cities by region while at the same time, name the cities too...
 

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.
I'm guessing your referring to data labels. Here's some code to alter data labels. Data labels are attached to points. HTH. Dave
Code:
ActiveChart.SeriesCollection(1).Points(1).DataLabel.Text = "bart"
With Sheets("Sheet1").ChartObjects(1).Chart.SeriesCollection(1).DataLabels
.NumberFormat = "0.0"
.VerticalAlignment = xlCenter
.Position = xlLabelPositionBelow
.Orientation = xlHorizontal
.AutoScaleFont = False
.Font.Size = 11
.Font.Bold = True
.Font.ColorIndex = 3
End With
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,175
Members
453,021
Latest member
Justyna P

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