Excel: assign label to scatter chart using specific cell values
ref: https://www.get-digital-help.com/custom-data-labels-in-x-y-scatter-chart/
Improve your X Y Scatter Chart with custom data labels
Author: Oscar Cronquist Article last updated on February 25, 2019

The picture above shows a chart that has custom data labels, they are linked to specific cell values.
What's on this page
- How to apply custom data labels in Excel 2013 and later versions
- How to add data label shapes
- How to rearrange data labels
- Video
- Download Excel file
 
- Workaround for earlier Excel versions
- Excel Macro - Apply custom data labels
- Where to copy the code
- How to use macro
- Download Excel file
 
This means that you can build a dynamic chart and automatically change the labels depending on what is shown on the chart.
I have demonstrated how to build dynamic data labels in a previous article if you are interested in using those in a chart.
In a post from March 2013 I demonstrated how to create Custom data labels in a chart.
Unfortunately, that technique worked only for bar and column charts.
You can't apply the same technique for an x y scatter chart, as far as I know.
Luckily the people at Microsoft have heard our prayers.
They have implemented a feature into Excel 2013 that allows you to assign a cell to a chart data point label a, in an x y scatter chart.
I will demonstrate how to do this for Excel 2013 and later versions and a workaround for earlier versions in this article.
How to apply custom data labels in Excel 2013 and later versions
This example chart shows the distance between the planets in our solar system, in an x y scatter chart.
The first 3 steps tells you how to build a scatter chart.
- Select cell range B3:C11
- Go to tab "Insert"
- Click the "scatter" button
- Right click on a chart dot and left click on "Add Data Labels"
- Right click on a dot again and left click "Format Data Labels"
- A new window appears to the right, deselect X and Y Value. 
- Enable "Value from cells" 
- Select cell range D3:D11
- Click OK 
This is what the chart shows, as you can see you need to manually rearrange the data labels and add data label shapes.
Back to top
Video
This following video shows you how to add data labels in an X Y Scatter Chart [Excel 2013 and later versions].
Back to top
Learn more
Axis | Chart Area | Chart Title | Axis Titles | Axis lines | Chart Legend | Tick Marks | Plot Area | Data Series | Data Labels | Gridlines
How to add data label shapes
- Right-click on a data label.
- Click on "Change data label shapes".
- Select a shape.
Back to top
How to change data label locations
You can manually click and drag data labels as needed. You can also let excel change the position of all data labels, choose between center, left, right, above and below.
- Right-click on a data label
- Click "Format Data Labels" 
- Select a new label position. 
Back to top
Excel: assign label to scatter chart using specific cell values的更多相关文章
- linux导出Excel The maximum column width for an individual cell is 255 characters
		linux环境到处Excel报错: The maximum column width for an individual cell is 255 characters 解决方案: for (int i ... 
- POI对EXCEL的操作【重点:如何设置CELL格式为文本格式】
		实际开发过程中通常用到的就是从数据库导出EXCEL表格了,JXL可以这样做,其实POI也可以(关于JXL与POI的异同可访问我之前总结的文章),之前写过POI对七种文档(当然也包括EXCEL)的内容读 ... 
- R12: How to add Microsoft Excel as Type to the Create Template List of Values in BI Publisher (Doc ID 1343225.1)
		Modified: 27-Oct-2013 Type: HOWTO In this Document Goal Solution References APPLIES TO: BI Publisher ... 
- 12 Factor CLI Apps
		CLIs are a fantastic way to build products. Unlike web applications, they take a small fraction of t ... 
- 使用C#和Excel进行报表开发(三)-生成统计图(Chart)
		有的Web项目选用Excel作为报表方案,在服务器端生成Excel文件,然后传送到客户端,由客户端进行打印.在国内的环境下,相对PDF方式,Excel的安装率应该比pdf阅读器的安装率要高,同时,微软 ... 
- NPOI将DataGridView中的数据导出+导出Chart图表图片至Excel
		#region 导出Excel private HSSFWorkbook Workbook = null; private Sheet SheetOne = null; private DataFor ... 
- C#组件系列——又一款Excel处理神器Spire.XLS,你值得拥有
		前言:最近项目里面有一些对Excel操作的需求,博主想都没想,NPOI呗,简单.开源.免费,大家都喜欢!确实,对于一些简单的Excel导入.导出.合并单元格等,它都没啥太大的问题,但是这次的需求有两点 ... 
- C#操作Excel时的格式设定(转)
		Excel报表打印的格式设定 1. 表头的设置 Excel._Worksheet myWorksheet; myWorksheet.PageSetup.Orientation = Excel. ... 
- 如何用Apache POI操作Excel文件-----如何用Apache POI 画一个离散图
		有的时候,我们需要Excel中的数据,通过一个图画,可视化的表现出来. 那么这个时候,应该如何做呢?现在就借花献佛,以Apache POI自己提供的一个例子为例,给大家演示一下POI的API 如何画图 ... 
随机推荐
- Apache hadoop namenode ha和yarn ha ---HDFS高可用性
			HDFS高可用性Hadoop HDFS 的两大问题:NameNode单点:虽然有StandbyNameNode,但是冷备方案,达不到高可用--阶段性的合并edits和fsimage,以缩短集群启动的时 ... 
- 【AOP】操作相关术语---【Spring】的【AOP】操作(基于aspectj的xml方式)
			[AOP]操作相关术语 Joinpoint(连接点):类里面哪些方法可以被增强,这些方法称为连接点. Pointcut(切入点):在类里面可以有很多的方法被增强,比如实际操作中,只是增强了类里面add ... 
- Elasticsearch5安装以及部署Head插件
			请看完再动手,两篇文章都是找来的,合并在一起了,前半部分是参考,我是按照后半部分做的,而且执行中间也有坑. Elasticsearch5.X及 head插件 安装说明: 1.下载elasticsear ... 
- 【BZOJ2622】[2012国家集训队测试]深入虎穴
			虎是中国传统文化中一个独特的意象.我们既会把老虎的形象用到喜庆的节日装饰画上,也可能把它视作一种邪恶的可怕的动物,例如“武松打虎”或者“三人成虎”.“不入虎穴焉得虎子”是一个对虎的威猛的形象的极好体现 ... 
- 2.nginx配置详细说明
			Nginx配置详解 nginx概述 nginx是一款自由的.开源的.高性能的HTTP服务器和反向代理服务器:同时也是一个IMAP.POP3.SMTP代理服务器:nginx可以作为一个HTTP服务器进行 ... 
- Go语言入门篇-jwt(json web token)权限验证
			一.token.cookie.session的区别 1.cookie Cookie总是保存在客户端中,按在客户端中的存储位置,可分为内存Cookie和硬盘Cookie. 内存Cookie由浏览器维护, ... 
- 【监控笔记】【3.1】DML(CDC)、DDL(DDL触发器)跟踪数据更改,数据库审计
			关键词:数据库审计.DDL审计.DML审计 [监控笔记][3.1]DML(CDC).DDL(DDL触发器)跟踪数据更改 [1]DML(CDC) 2008及以上 https://www.cnblogs. ... 
- babel版本问题
			在运行webpack命令的时候总是报错,原来是因为babel版本的问题 我安装的webpack3 babel版本是6 babel-loader是8 后来把babel改成7就可以了 
- tensorflow学习笔记五----------逻辑回归
			在逻辑回归中使用mnist数据集.导入相应的包以及数据集. import numpy as np import tensorflow as tf import matplotlib.pyplot as ... 
- linux查找进程id和杀死进程以及查看内存??
			ps 命令用于查看当前正在运行的进程 ps ax : 显示当前系统进程的列表 ps aux : 显示当前系统进程详细列表以及进程用户 -e 显示所有进程,环境变量 此参数的效果和指定"A&q ... 
