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.

  1. Select cell range B3:C11
  2. Go to tab "Insert"
  3. Click the "scatter" button
  4. Right click on a chart dot and left click on "Add Data Labels"
  5. Right click on a dot again and left click "Format Data Labels"
  6. A new window appears to the right, deselect X and Y Value.

  7. Enable "Value from cells"

  8. Select cell range D3:D11
  9. 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

  1. Right-click on a data label.
  2. Click on "Change data label shapes".
  3. 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.

  1. Right-click on a data label
  2. Click "Format Data Labels"

  3. Select a new label position.

Back to top

最新文章

  1. Python 学习笔记三
  2. sprite图在移动端的使用
  3. Java读取Excel文件的几种方法
  4. SQL查询 练习题
  5. 统一使用GPT分区表,安装MAC 10.10 和 Win8.1 pro双系统
  6. Part 86 to 88 Talking about Multithreading in C#
  7. 配置hibernate根据实体类自动建表功能
  8. Intellij IDEA配置优化--转载
  9. linux 系统调优2
  10. Spring-----Spring对AOP的支持
  11. linux命令学习01-mkdir
  12. c++子类和父类成员函数重名
  13. Linux服务器安全审计工具与流程完全指南
  14. python中的zip()函数和map()函数
  15. 剑指Offer面试题 二维数组中的查找
  16. 音视频编解码技术(二):AAC 音频编码技术
  17. CodeForce VKcup C 树形dp
  18. [sh]top添加到crontab不生效问题解决
  19. MySQL中的事务及读写锁实现并发访问控制
  20. 转:关于ROWNUM的使用

热门文章

  1. 【Java安全】关于Java中常用加密/解密方法的实现
  2. 【HANA系列】SAP HANA SQL获取当前日期最后一天
  3. 第十届山东省acm省赛补题(2)
  4. OpenCV在ARM-linux上的移植过程遇到的问题3---共享库中嵌套库居然带路径【未解决】
  5. rename批量修改文件名
  6. [转帖]虚拟内存探究 -- 第一篇:C strings & /proc
  7. vue axios应用
  8. A+B and A*B problem 大数相加 相乘 模拟
  9. Javascript的是三种字符串连接方式
  10. git学习指南