# Dates appear as numbers on the x-axis using PlutoPlotly

**URL:** <https://discourse.julialang.org/t/dates-appear-as-numbers-on-the-x-axis-using-plutoplotly/110311>\
**Category:** Visualization\
**Tags:** plotting, plotlyjs, plutoplotly\
**Created:** [February 16, 2024, 5:40pm UTC](https://discourse.julialang.org/t/dates-appear-as-numbers-on-the-x-axis-using-plutoplotly/110311 "2024-02-16T17:40:49Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![PeX](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pex/32/49986_2.png) [@PeX](https://discourse.julialang.org/u/PeX)\
**Post date:** [February 16, 2024, 5:40pm UTC](https://discourse.julialang.org/t/dates-appear-as-numbers-on-the-x-axis-using-plutoplotly/110311/1 "2024-02-16T17:40:49Z")

</div>

Hi,  
I’m trying to use Plotly with my Pluto notebook code for plotting timeseries of dataframes.  
I’m using `PlutoPLotly` and when I plot using:  
`plot(df.Date, df.data1, x=:Date) `  
The x-axis ticks appear as numbers, despite df.Date being of Date type.

Any insights?  
thank you!

---

<div class="post-metadata">

**Author:** ![SteffenPL](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/steffenpl/32/206270_2.png) [@SteffenPL](https://discourse.julialang.org/u/SteffenPL)\
**Post date:** [February 16, 2024, 7:27pm UTC](https://discourse.julialang.org/t/dates-appear-as-numbers-on-the-x-axis-using-plutoplotly/110311/2 "2024-02-16T19:27:29Z")

</div>

Maybe some more information would help. Can you show the exact type of your data frame and also which version of PlutoPlotly.jl you are using?

Could you try `plot(df, x = :Date, y = :data1)`? If I understand the syntax correctly, the `x = :Date` is for selecting columns and not for defining the format of how the x-ticks are shown.

---

<div class="post-metadata">

**Author:** ![PeX](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pex/32/49986_2.png) [@PeX](https://discourse.julialang.org/u/PeX)\
**Post date:** [February 16, 2024, 7:45pm UTC](https://discourse.julialang.org/t/dates-appear-as-numbers-on-the-x-axis-using-plutoplotly/110311/3 "2024-02-16T19:45:27Z")

</div>

Yes, you are right! I was able to solve this using:  
` plot(df.Date, df.data1, xaxis_type= "date")`
