Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit f956911

Browse filesBrowse files
Merge pull request plotly#2662 from Nermin-Ghith/patch-1
Update time-series.md
2 parents a5212e7 + d79fb04 commit f956911
Copy full SHA for f956911

File tree

Expand file treeCollapse file tree

1 file changed

+8
-0
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+8
-0
lines changed

‎doc/python/time-series.md

Copy file name to clipboardExpand all lines: doc/python/time-series.md
+8Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,8 @@ A range slider is a small subplot-like area below a plot which allows users to p
115115
```python
116116
import plotly.graph_objects as go
117117
import pandas as pd
118+
import plotly.express as px
119+
118120
df = pd.read_csv('https://raw.githubusercontent.com/plotly/datasets/master/finance-charts-apple.csv')
119121

120122
fig = 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
131133
import plotly.graph_objects as go
132134
import pandas as pd
135+
import plotly.express as px
136+
133137
df = pd.read_csv('https://raw.githubusercontent.com/plotly/datasets/master/finance-charts-apple.csv')
134138

135139
fig = 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
190194
import plotly.express as px
191195
import pandas as pd
196+
import plotly.express as px
197+
192198
df = pd.read_csv('https://raw.githubusercontent.com/plotly/datasets/master/finance-charts-apple.csv')
193199

194200
fig = px.scatter(df, x='Date', y='AAPL.High', range_x=['2015-12-01', '2016-01-15'],
@@ -199,6 +205,8 @@ fig.show()
199205
```python
200206
import plotly.express as px
201207
import pandas as pd
208+
import plotly.express as px
209+
202210
df = pd.read_csv('https://raw.githubusercontent.com/plotly/datasets/master/finance-charts-apple.csv')
203211

204212
fig = px.scatter(df, x='Date', y='AAPL.High', range_x=['2015-12-01', '2016-01-15'],

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.