Hello!
So, I have a problem that seems to be very basic.
I have this very basic dataframe:
And Iโm tryng to generate this chart: (that can be found here)
But this is the chart that I get:
Why Iโm not getting simple lines with a simple area ? I donโt understand this figure.
This is the code:
fig = px.area(df,
x="data_entrada",
y=["conf_hc_core","codigo"],
)
I also tryed this example that can be found in the same link:
I copy paste the example code and just changed to my df:
fig= go.Figure()
fig.add_trace(go.Scatter(
x=['data_entrada'],
y=['conf_hc_core'],
hoverinfo='x+y',
mode='lines',
line=dict(width=0.5, color='rgb(131, 90, 241)'),
stackgroup='one' # define stack group
))
fig.add_trace(go.Scatter(
x=['data_entrada'],
y=['codigo'],
hoverinfo='x+y',
mode='lines',
line=dict(width=0.5, color='rgb(111, 231, 219)'),
stackgroup='one'
))
but this is the result:
What Iโm missing here?