跳到主要内容

如何在Excel中的X轴上创建带有日期和时间的图表?

在Excel中,我们通常会插入一个图表以更好地描述数据。 但是在某些情况下,当您基于一系列日期和时间创建柱形图/条形图/折线图时,图表的X轴可能显示为以下屏幕截图。 在本文中,我介绍了如何在图表中正确显示X轴上的日期和时间的方法。
日期时间为1的doc图表

正确在X轴上创建带有日期和时间的图表


箭头蓝色右气泡 正确在X轴上创建带有日期和时间的图表

要正确显示日期和时间,您只需要在 格式轴 对话。

1.右键单击图表中的X轴,然后选择 格式轴 从上下文菜单中。 看截图:
日期时间为2的doc图表

2.然后在 格式轴 窗格或 格式轴 对话框下 轴选项 选项卡,检查 文字轴 在选项 轴类型 部分。 看截图:
  日期时间为4的doc图表
如果您使用的Excel版本晚于2010,则可以看到弹出“格式轴”窗格,然后在“轴选项”组中的“轴类型”下选中“文本轴”选项。
日期时间为3的doc图表

3。 点击 关闭 或返回到图表,则日期和时间数据已正确显示在X轴上。 看截图:
日期时间为5的doc图表


分两个步骤创建车速表!

有时,您可能希望使用速度计图表来显示项目的价格,但是在Excel中,创建速度计图表需要许多步骤,这既复杂又浪费时间。 在这里 车速表 Kutools for Excel 中的工具可以帮助您通过两个简单的步骤创建标准车速表图表。 立即下载此工具并免费试用 30 天.
doc速度表图表

最佳办公生产力工具

🤖 Kutools 人工智能助手:基于以下内容彻底改变数据分析: 智能执行   |  生成代码  |  创建自定义公式  |  分析数据并生成图表  |  调用 Kutools 函数...
热门特色: 查找、突出显示或识别重复项   |  删除空白行   |  合并列或单元格而不丢失数据   |   不使用公式进行四舍五入 ...
超级查询: 多条件VLookup    多值VLookup  |   跨多个工作表的 VLookup   |   模糊查询 ....
高级下拉列表: 快速创建下拉列表   |  依赖下拉列表   |  多选下拉列表 ....
列管理器: 添加特定数量的列  |  移动列  |  切换隐藏列的可见性状态  |  比较范围和列 ...
特色功能: 网格焦点   |  设计图   |   大方程式酒吧    工作簿和工作表管理器   |  资源库 (自动文本)   |  日期选择器   |  合并工作表   |  加密/解密单元格    按列表发送电子邮件   |  超级筛选   |   特殊过滤器 (过滤粗体/斜体/删除线...)...
前 15 个工具集12 文本 工具 (添加文本, 删除字符,...)   |   50+ 图表 类型 (甘特图,...)   |   40+ 实用 公式 (根据生日计算年龄,...)   |   19 插入 工具 (插入二维码, 从路径插入图片,...)   |   12 转化 工具 (小写金额转大写, 货币兑换,...)   |   7 合并与拆分 工具 (高级组合行, 分裂细胞,...)   |   ... 和更多

使用 Kutools for Excel 增强您的 Excel 技能,体验前所未有的效率。 Kutools for Excel 提供了 300 多种高级功能来提高生产力并节省时间。  单击此处获取您最需要的功能...

产品描述


Office Tab 为 Office 带来选项卡式界面,让您的工作更加轻松

  • 在Word,Excel,PowerPoint中启用选项卡式编辑和阅读,发布者,Access,Visio和Project。
  • 在同一窗口的新选项卡中而不是在新窗口中打开并创建多个文档。
  • 每天将您的工作效率提高50%,并减少数百次鼠标单击!
Comments (23)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
I have the same issue when graphing data that has date AND time: points on the graph are equally spaced, whereas the underlying data has unequal gaps between datapoints. Data is in the form "dd/mm/yyyy hh:mm" formatted as date/time (not text). Data spans multiple days so it's not possible to extract just the time element.
This comment was minimized by the moderator on the site
I have a chart with x-axis in time that stretches during about 6h and 35min. I have data for each 20min in the beginning, then 15min and lastly each 10min. Also, in between I have 45min and 5min data.. The issue that I have, and several others, is that each gap between the date are equally spaced out. Meaning that, even if it is only 5min the gap is the same as if it was 45min.
This comment was minimized by the moderator on the site
i want to make a line graph which contains thousand of entries it's included date, time, month and year, so please help me out.
This comment was minimized by the moderator on the site
Hi, syed Mubashir alam, I do not understand your quetion, if you just create a line graph and the x-axis contains month/day/year hour:minute as below screenshot shown:
https://www.extendoffice.com/images/stories/comments/sun-comment/line-chart-1.png
just follow above steps of the article. If your question is about the axis contents are to long, there is no good idea.
This comment was minimized by the moderator on the site
i want to make a line graph which contains thousands of entries including time, date, month and year but i couldn't make a line graph so please help me out.
This comment was minimized by the moderator on the site
It's good coment that point is not a comma. When you want to add more numericals numbers you should use comma in excel ;)
This comment was minimized by the moderator on the site
Excel menus have changed - this is an out of date article - please update for 2020 .. e.g where is AXIS TYPE now?
This comment was minimized by the moderator on the site
I did not found Excel 2020, just 365 2019, which menus are the same as 2013,2016 version.
This comment was minimized by the moderator on the site
How do I remove days that don't have data in them. Example 8/1-8/31 but not data was captured on 8/3 or 8/4, how do I remove those dates from my graph? They are not in my data table so why is it pulling them?
This comment was minimized by the moderator on the site
Open the Excel file that holds the chart from which you want to exclude dates. Click the X-axis, located underneath the chart, so that it becomes surrounded by a small box. Right-click inside the box and choose "Format Axis" from the popup menu. Click "Axis Options" on the left side of the "Format Axis" window. Locate the three "Axis Type" options in the middle of the screen on the right side of the window. Click the radio button next to "Text axis."
This comment was minimized by the moderator on the site
This comment was minimized by the moderator on the site
Hi, I have an issue here. When I opened "Format Axis" and "Axis Options", there is no "Axis Type" choice here
This comment was minimized by the moderator on the site
Hi, Agassi, which Excel version you use?
This comment was minimized by the moderator on the site
Easy, useful, but i didn't know. Thanks a lot
This comment was minimized by the moderator on the site
But it doesnt show them in right relation to eachother. For example 2 hours and 6 hours are same in chart..
This comment was minimized by the moderator on the site
Hi Kiwi, maybe you can paint a chart to show me what you want the chart show.
There are no comments posted here yet
Load More
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations