import pandas as pd
import plotly.express as px
df =pd.DataFrame(dict(product=['A', 'B', 'C'],
value= [2000, 1400, 2300]))
fig = px.bar(df, x='product', y='value', text="value")
#print(fig.data[0].text) to see its actual definition, and update it as follows:
fig.update_traces(text= [f'{val}\u00A3' for val in df['value']])
fig.show()
I can see that the unicode addition does append properly.
The only issue i have is that it is now taking the wrong column values and not the one i want.
EG
I have 2 columns which are the values from the model.
There is a third column that is an equation of col1+2, which is the results needed to be shown
Using the above unicode line, only returns results from col1