When I visualize data using matplotlib it displays very well, but when using Plotly, the data display very bad.
2 Answers
Try changing the plot type on Plotly to line:
import plotly.express as px
fig = px.line(df, x="Date", y="Close", title='COMERCIAL INTERNATIONAL BANK')
fig.show()
-
$\begingroup$ I try it, the same result.Worried about the data being problematic and needed preprocessing $\endgroup$– andowJan 14, 2021 at 18:28
-
$\begingroup$ I have had the same problem that you have in plotly but in matplotlib. In your place I would try, sorting my dataframe by date and then plot in plotly $\endgroup$– MultivacJan 14, 2021 at 18:55