Hoppa till huvudinnehåll

Hur skapar jag ett diagram med datum och tid på X-axeln i Excel?

I Excel infogar vi vanligtvis ett diagram för att bättre beskriva data. Men i vissa fall, när du skapar en kolumn / stapel / linjediagram baserat på en serie datum och tid, kan X-axeln för diagrammet visas som nedanstående skärmdump. Och i den här artikeln presenterar jag vägen för hur man visar datum och tid på X-axeln korrekt i diagrammet.
doc-diagram med datumtid 1

Skapa ett diagram med datum och tid på X-axeln korrekt


pil blå höger bubbla Skapa ett diagram med datum och tid på X-axeln korrekt

För att visa datum och tid korrekt behöver du bara ändra ett alternativ i Formatera axel dialog.

1. Högerklicka på X-axeln i diagrammet och välj Formatera axel från snabbmenyn. Se skärmdump:
doc-diagram med datumtid 2

2. Sedan i Formatera axel ruta eller Formatera axel dialog, under Axialternativ fliken, kolla Textaxel alternativet i Axeltyp sektion. Se skärmdump:
  doc-diagram med datumtid 4
Om du använder Excel-versionen senare än 2010 kan du se en Format Axis-ruta dyker upp och markera alternativet Textaxel under Axis Type i Axis Options-gruppen.
doc-diagram med datumtid 3

3. klick Stänga eller gå tillbaka till diagrammet, då har datum- och tidsdata visats korrekt i X-axeln. Se skärmdump:
doc-diagram med datumtid 5


Skapa ett hastighetsmätardiagram med två steg!

Ibland kanske du vill använda ett hastighetsmätardiagram för att visa prissättningen av ett projekt, men i Excel behöver du skapa ett hastighetsmätardiagram många steg som är komplexa och slöseri med tid. Här, den Hastighetsmätare diagram verktyget i Kutools för Excel kan hjälpa dig att skapa ett standardhastighetsmätardiagram med två enklaste steg. Ladda ner det här verktyget med gratis 30-dagars provperiod nu.
doc hastighetsmätare diagram

Bästa kontorsproduktivitetsverktyg

🤖 Kutools AI Aide: Revolutionera dataanalys baserat på: Intelligent utförande   |  Generera kod  |  Skapa anpassade formler  |  Analysera data och generera diagram  |  Anropa Kutools funktioner.
Populära funktioner: Hitta, markera eller identifiera dubbletter   |  Ta bort tomma rader   |  Kombinera kolumner eller celler utan att förlora data   |   Rund utan formel ...
Superuppslag: Flera kriterier VLookup    VLookup med flera värden  |   VSök över flera ark   |   Fuzzy Lookup ....
Avancerad rullgardinslista: Skapa snabbt en rullgardinslista   |  Beroende rullgardinslista   |  Flervals-rullgardinslista ....
Kolumnhanterare: Lägg till ett specifikt antal kolumner  |  Flytta kolumner  |  Växla synlighetsstatus för dolda kolumner  |  Jämför intervall och kolumner ...
Utvalda funktioner: Rutnätsfokus   |  Designvy   |   Stor formelbar    Arbetsbok & Bladhanterare   |  Resursbibliotek (Automatisk text)   |  Datumväljare   |  Kombinera arbetsblad   |  Kryptera/Dekryptera celler    Skicka e-postmeddelanden efter lista   |  Superfilter   |   Specialfilter (filtrera fet/kursiv/genomstruken...) ...
Topp 15 verktygssatser12 text verktyg (lägga till text, Ta bort tecken, ...)   |   50+ Diagram Typer (Gantt Chart, ...)   |   40+ Praktiskt Formler (Beräkna ålder baserat på födelsedag, ...)   |   19 Införande verktyg (Infoga QR-kod, Infoga bild från sökväg, ...)   |   12 Konvertering verktyg (Siffror till ord, Valutaväxling, ...)   |   7 Slå ihop och dela verktyg (Avancerade kombinera rader, Dela celler, ...)   |   ... och mer

Uppgradera dina Excel-färdigheter med Kutools för Excel och upplev effektivitet som aldrig förr. Kutools för Excel erbjuder över 300 avancerade funktioner för att öka produktiviteten och spara tid.  Klicka här för att få den funktion du behöver mest...

Beskrivning


Fliken Office ger ett flikgränssnitt till Office och gör ditt arbete mycket enklare

  • Aktivera flikredigering och läsning i Word, Excel, PowerPoint, Publisher, Access, Visio och Project.
  • Öppna och skapa flera dokument i nya flikar i samma fönster, snarare än i nya fönster.
  • Ökar din produktivitet med 50 % och minskar hundratals musklick för dig varje dag!
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