I am using stack bar to present two parameters for few companies with a facet for three years
it all goes well,however I would like to add the label in the graph at least for one of the parameters
when using text-it destroy the other parameter view ,
I would like to see both parameters and text at least for the current_ratio parameter
this is the code :
import dash
import plotly.offline as pyo
import dash_core_components as dcc
import dash_html_components as html
from dash.dependencies import Input, Output
import plotly.graph_objs as go
import pandas as pd
import plotly.express as px
#quick_ratio
df=pd.read_excel(r'C:\Users\[![enter image description here][1]][1]example.xlsx',sheet_name='Sheet1')
fig=px.bar(
df,
x='company',
y=['current_ratio','quick_ratio'],
facet_col='y',
)
fig.update_layout(barmode='stack')
app=dash.Dash(__name__)
app.layout=html.Div([
html.H1('M_Aviv liquidity '),
dcc.Graph(id='graph',figure=fig)
])
app.run_server(debug=True,port=8009)