Show Sidebar Hide Sidebar

Adding Sliders to Charts in Pandas

How to add sliders to Pandas charts with JavaScript

import plotly.plotly as py
from plotly.graph_objs import *
import pandas as pd
df = pd.read_csv('https://raw.githubusercontent.com/plotly/datasets/master/2014_orange_stock.csv')
df.head()
trace = Scatter( x=df['AAPL_x'], y=df['AAPL_y'], mode='markers', marker=dict(size=4) )
data = Data([trace])
url = py.plot(data, filename='line-scatter-aapl')
Still need help?
Contact Us

For guaranteed 24 hour response turnarounds, upgrade to a Developer Support Plan.