'How to create multiline chart with Python and Plotly?
Solution 1:[1]
The data need a title or label. My example uses a pandas dataframe:
import plotly.express as px
import pandas as pd
a = [1, 2, 3, 4, 5]
b = [5, 4, 3, 2, 1]
fig = px.line(pd.DataFrame({'line1':a, 'line2':b}))
# just dictionary will also work
# fig = px.line({'line1':a, 'line2':b})
fig.show()
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 |

