TODAY learn how to bring Drag & Drop to Dash with Dashboard Engine. 🌠 Sign up for the live event!

Force axis units to thousands (k) instead of millions (M)

Since the numbers on my x axis are somewhat large, they are showing in millions (i.e., 25.8512M). However, I would like to force the format to show in thousands instead (i.e., 25,851.2k).

import plotly.graph_objects as go

fig = go.Figure(data = [go.Scatter(x = [25.851e6, 25.852e6], y = [0, 1])])
    
fig.show()

Following the suggestions in this SO question and this d-3 format API reference, I have tried setting the axis tickformat to ',.6s', for example, but no luck.

Any suggestions?