@@ -115,6 +115,8 @@ A range slider is a small subplot-like area below a plot which allows users to p
115115``` python
116116import plotly.graph_objects as go
117117import pandas as pd
118+ import plotly.express as px
119+
118120df = pd.read_csv(' https://raw.githubusercontent.com/plotly/datasets/master/finance-charts-apple.csv' )
119121
120122fig = px.line(df, x = ' Date' , y = ' AAPL.High' , title = ' Time Series with Rangeslider' )
@@ -130,6 +132,8 @@ Range selector buttons are special controls that work well with time series and
130132``` python
131133import plotly.graph_objects as go
132134import pandas as pd
135+ import plotly.express as px
136+
133137df = pd.read_csv(' https://raw.githubusercontent.com/plotly/datasets/master/finance-charts-apple.csv' )
134138
135139fig = px.line(df, x = ' Date' , y = ' AAPL.High' , title = ' Time Series with Range Slider and Selectors' )
@@ -189,6 +193,8 @@ The `rangebreaks` attribute available on x- and y-axes of type `date` can be use
189193``` python
190194import plotly.express as px
191195import pandas as pd
196+ import plotly.express as px
197+
192198df = pd.read_csv(' https://raw.githubusercontent.com/plotly/datasets/master/finance-charts-apple.csv' )
193199
194200fig = px.scatter(df, x = ' Date' , y = ' AAPL.High' , range_x = [' 2015-12-01' , ' 2016-01-15' ],
@@ -199,6 +205,8 @@ fig.show()
199205``` python
200206import plotly.express as px
201207import pandas as pd
208+ import plotly.express as px
209+
202210df = pd.read_csv(' https://raw.githubusercontent.com/plotly/datasets/master/finance-charts-apple.csv' )
203211
204212fig = px.scatter(df, x = ' Date' , y = ' AAPL.High' , range_x = [' 2015-12-01' , ' 2016-01-15' ],
0 commit comments