Help required generating chart

Well, this is because plotly.expressdoes some grouping of your DataFrame under the hood. Sorting the df before creating the figure solves this issue:

results = results.sort_values('guesses', axis=0)

newplot(7)

See also

I imagine, the issue with the percentage is based on the same reason. I’ not sure which values are used to calculate the percentage.