✊🏿 Black Lives Matter. Please consider donating to Black Girls Code today.
🐇 Announcing Dash VTK for 3d simulation graphics. Check out the March webinar.

Plotting Scatter plots with text on the x axis and Value on the Y axis

Hello If I cannot restructure the RAW input data, but if I want to filter dataframes and plot the string data on x axis , is there a way I can doit without creating another dictionary for string value mapping to an integer ??

Ex structure of my df

Country sales representatives
Japan 10 5
Japan 30 5
India 15 10
China 30 15
Sweden 10 20
Sweden 10 20

I want plots as following
Total sales plot-

40| x
30| x
20| x

10
 | Japan    China        Sweden