提示:其它语言是由 Google 机器翻译的。 你可以访问 English 版本。
登录
x
or
x
x
马上登记
x

or

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

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

在X轴上正确创建一个包含日期和时间的图表


通过两个步骤创建速度表图表!

有时,您可能希望使用车速表来显示项目的价格,但在Excel中,要创建车速表图表需要许多步骤,这些步骤很复杂且浪费时间。 在这里, 车速表图表 Kutools for Excel中的工具可以帮助您通过两个简单步骤创建标准速度表图表。 立即免费下载60-day试用版下载此工具.
doc车速表图表
Office选项卡在Office中启用选项卡式编辑和浏览,使您的工作更轻松......
Kutools for Excel - 最佳办公生产力工具将解决您的大部分Excel问题
  • 重用任何东西: 将最常用或最复杂的公式,图表和其他任何内容添加到您的收藏夹中,并在将来快速重复使用它们。
  • 超过20文本功能: 从文本字符串中提取数字; 提取或删除部分文本; 将数字和货币转换为英语单词...
  • 合并工具:多个工作簿和表格合二为一; 合并多个单元格/行/列而不丢失数据; 合并重复行和总和...
  • 拆分工具:根据价值将数据拆分为多个表格; 一个工作簿到多个Excel,PDF或CSV文件; 一列到多列......
  • 粘贴跳过 隐藏/过滤行; 数和总和 按背景颜色; 创建邮件列表和 通过Cell的价值发送电子邮件...
  • 超级过滤器: 创建高级过滤方案并应用于任何工作表; 排序 按周,日,频率等; 筛选 通过大胆,公式,评论......
  • 超过300强大的功能; 适用于Office 2007-2019和365; 支持所有语言; 在公司轻松部署; 全功能60天免费试用。

箭头蓝色右泡 在X轴上正确创建一个包含日期和时间的图表


要正确显示日期和时间,您只需要更改中的选项 格式轴 对话。

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

2。 然后在 格式轴 窗格或 格式轴 对话框下 轴选项 选项卡,检查 文字轴 在选项 轴类型 部分。 看截图:
包含日期时间3的doc图表 包含日期时间4的doc图表

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



Kutools for Excel - 最佳办公生产力工具提高80%的生产力

  • 重用: 快速插入 复杂的公式,图表 以及你以前用过的任何东西; 加密单元格 密码; 创建邮件列表 并发送电子邮件...
  • 超级方程式酒吧 (轻松编辑多行文字和公式); 阅读布局 (轻松读取和编辑大量单元格); 粘贴到过滤范围...
  • 合并单元格/行/列 不丢失数据; 分裂细胞含量; 组合重复的行/列...防止重复的细胞; 比较范围...
  • 选择复制或唯一 行; 选择空行 (所有细胞都是空的); 超级查找和模糊查找 在许多工作簿中; 随机选择......
  • 精确复制 多个单元格而不更改公式参考; 自动创建参考 多张表; 插入项目符号,复选框等等......
  • 提取文本,添加文本,按位置删除, 删除空间; 创建和打印分页小计; 在单元格内容和注释之间转换...
  • 超级过滤器 (将过滤方案保存并应用到其他工作表); 高级排序 按月/周/日,频率等; 特殊过滤器 用粗体,斜体......
  • 结合工作簿和工作表; 根据键列合并表; 将数据拆分为多个表格; 批量转换xls,xlsx和PDF...
  • 超过300强大的功能。 支持Office / Excel 2007-2019和365。 支持所有语言。 在您的企业或组织中轻松部署。 全功能60天免费试用。
kte tab 201905

Office选项卡为Office提供选项卡式界面,使您的工作更轻松

  • 在Word,Excel,PowerPoint中启用选项卡式编辑和阅读,Publisher,Access,Visio和Project。
  • 在同一窗口的新选项卡中打开并创建多个文档,而不是在新窗口中。
  • 通过50%提高您的工作效率,每天为您减少数百次鼠标点击!
官方底部
Say something here...
symbols left.
You are guest ( Sign Up? )
or post as a guest, but your post won't be published automatically.
Loading comment... The comment will be refreshed after 00:00.
  • To post as a guest, your comment is unpublished.
    Agassi · 3 months ago
    Hi, I have an issue here. When I opened "Format Axis" and "Axis Options", there is no "Axis Type" choice here
    • To post as a guest, your comment is unpublished.
      Sunny · 1 months ago
      Hi, Agassi, which Excel version you use?
  • To post as a guest, your comment is unpublished.
    Rafael · 3 months ago
    Easy, useful, but i didn't know. Thanks a lot
  • To post as a guest, your comment is unpublished.
    KIWI · 7 months ago
    But it doesnt show them in right relation to eachother. For example 2 hours and 6 hours are same in chart..
    • To post as a guest, your comment is unpublished.
      Sunny · 7 months ago
      Hi Kiwi, maybe you can paint a chart to show me what you want the chart show.
  • To post as a guest, your comment is unpublished.
    Vilmos · 9 months ago
    This is not OK. It does not show correct order by time just puts the timestamps there as a text in equal distances.
    • To post as a guest, your comment is unpublished.
      Jeff · 2 months ago
      I'm having the same issue. It would be better for the x-axis to show the time not as evenly spaced category labels, but in actual proportion to the durations between the time values. Example: Here's data on world population by year (note that the intervals between years are not evenly spaced):

      Year: Population
      1804: 1,000,000,000
      1927: 2,000,000,000
      1960: 3,000,000,000
      1989: 5,000,000,000
      2000: 6,000,000,000
      2017: 7,500,000,000

      An Excel line chart depicts this data on a fairly even slope (I'd post a picture, but this interface only allows text); however, the generally declining time intervals SHOULD yield a graph that looks much more exponential.

      I was able to "fake" it by inserting rows in the data table for each year with no data (e.g., 122 rows for the years between 1804 and 1927 exclusive, 32 rows for the years between 1927 and 1960, etc.), so my graph looks more proportional now, but this has its own disadvantages. There are MANY empty rows and much wasted table space. I'd love to learn a better way to get Excel to treat time values in the x-axis as actual time values, rather than mere category labels
    • To post as a guest, your comment is unpublished.
      Sunny · 8 months ago
      Hello, Vilmos, create the chart after you order the time data, then the chart will display the time in order.
      • To post as a guest, your comment is unpublished.
        help · 3 months ago
        Nope, you didnt' understand him. It's not proportional.
        • To post as a guest, your comment is unpublished.
          ahmad · 3 months ago
          exactly.
          i am looking desperately for that.
          do you know any other software to create that graph?
          • To post as a guest, your comment is unpublished.
            Nicole · 21 days ago
            I did it in Google Sheets, and it was pretty straight forward.

            It was able to graph using a column with DateTime values for the x-axis, with appropriate spacing, and without having to resort to treating that column as text. It worked with the cells in that column formatted as either a date, or in datetime format. There weren't many options for the spacing on the x-axis lables, but at least you can hover over the trends and see the x-axis value for a given point, in whatever way the cells are formatted. Frustrating that there doesn't seem to be a way in Excel.