简体   繁体   English

可以在Excel中创建具有二维X轴的散点图

[英]Is is possible to create a scatter chart in excel that has a 2 dimensional X axis

I'm trying to create what I would call a Vertical stacked scatter plot or a scatte plot with a 2 dimensional x-axis. 我正在尝试创建所谓的垂直堆积散点图或二维x轴的散点图。 I tried using excel's normal charting tools as well as its pivot charting functionality, but I have not been able to crack this one. 我尝试使用excel的常规制图工具及其透视图制图功能,但无法破解该工具。 As anyone had any luck with this type of a chart or can you recommend a tool that can handle it. 由于任何人都对这种图表有好运,或者您可以推荐一种可以处理它的工具。 I've included an image of what I'm trying to achieve below: 我在下面提供了我要达到的目标的图像:

在此处输入图片说明

The Y axis has months, and the X axis is a combination of Year and Units. Y轴有月份,X轴是Year和Units的组合。

Thanks in advance for your input. 预先感谢您的输入。

This can be easily handled in Tableau, if you and your users have access to it. 如果您和您的用户可以访问它,则可以在Tableau中轻松处理。 For example, using sample Excel data with this format: 例如,使用具有以下格式的示例Excel数据:

Date       Units
1/1/2014   10
2/1/2014   20
3/1/2014   30
4/1/2014   40
...

You can create the scatter plot you've shown in your mock-up by doing the following: 您可以通过执行以下操作来创建在模型中显示的散点图:

  • Drag Date to Rows and change it to Month level 将日期拖到行并将其更改为月级别
  • Drag Date to Columns and leave it at Year level 将“日期”拖动到“列”并保留在“年”级别
  • Drag Units to Columns 将单位拖到列
  • Change the Marks type to Circle 将标记类型更改为圆形
  • Reduce the size of the circles so they look like points 减小圆圈的大小,使它们看起来像点
  • Sort Month according to your preference 根据您的喜好排序月份

Here's a link to a screenshot of the set-up and resulting plot: 这是设置和结果图的屏幕快照的链接:

screenshot of scatter plot 散点图的屏幕截图

There are also many formatting options to change the look of the plot. 还有许多格式设置选项可以更改图形的外观。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM