# Datetime-type \`x\` values are incorrectly plotted in \`px.scatter\`

**URL:** <https://community.plotly.com/t/datetime-type-x-values-are-incorrectly-plotted-in-px-scatter/82540>\
**Category:** 📊 Plotly Python\
**Created:** [February 23, 2024, 4:33pm UTC](https://community.plotly.com/t/datetime-type-x-values-are-incorrectly-plotted-in-px-scatter/82540 "2024-02-23T16:33:24Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![j-at-ch](https://avatars.discourse-cdn.com/v4/letter/j/ecae2f/32.png) [@j-at-ch](https://community.plotly.com/u/j-at-ch)\
**Post date:** [February 23, 2024, 5:07pm UTC](https://community.plotly.com/t/datetime-type-x-values-are-incorrectly-plotted-in-px-scatter/82540/2 "2024-02-23T17:07:13Z")

</div>

Ok - rapid turn-around - the solution is to change the renderer to “svg”

```python
px.scatter(df, x="t", y="x", render_mode="svg")

```

For more details on this see the related discussion [here](https://community.plotly.com/t/plotly-express-scatter-with-date-as-xaxis/74210).

---

_[View the full topic](https://community.plotly.com/t/datetime-type-x-values-are-incorrectly-plotted-in-px-scatter/82540)._
