File size: 329 Bytes
42ee455
 
 
 
 
 
 
 
 
 
b699ae9
1
2
3
4
5
6
7
8
9
10
11
12
import pandas as pd
import vizro.plotly.express as px

stepped_line_data = pd.DataFrame(
    {
        "year": [1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003],
        "rate": [0.10, 0.12, 0.15, 0.13, 0.14, 0.13, 0.14, 0.16, 0.15],
    }
)

fig = px.line(data_frame=stepped_line_data, x="year", y="rate", line_shape="vh")