Bar chart preserving the order of the data points

Hi everyone,

I am trying to make a bar chart in which the bars are shown in the order of the data points they represent. In other words, I don’t want Plotly to sort data in any way whatsoever.

Given the data

{
    "type":"bar",
    "x":[5467229,5238570,5124503,4182356,4125260,3913421,3836379,3826154,3657076,3647229],
    "y":["1989","1990","1986","2013","2010","1999","2005","2000","2015","2024"],
    "orientation":"h"
}

I want to see something like

1989   *******************************************
1990   ***********************************
1986   ********************************

etc. If I give Plotly the above data, it interprets the year labels as integers and puts them on a linear Y axis. But in my case, the year numbers are just labels that happen to be numeric.

Any ideas?