Andrew Tran
September 16, 2015
Create an account!
What is Plotly?
Plotly is an online analytics and data visualization tool, headquartered in Montreal, Quebec. Plotly provides online graphing, analytics, and stats tools for individuals and collaboration, as well as scientific graphing libraries for Python, R, MATLAB, Perl, Julia, Arduino, and REST.
Plotly was built using Python and the Django framework, with a front end using JavaScript and the visualization library D3.js, HTML and CSS. Files are hosted on Amazon S3.
Welcome to plot.ly/feed
Click the DATA tab.
Click SAVE if you want to save a copy of it to your list of projects.
Click on +NEW PROJECT button at the top right or click on the +NEW GRID button at the top left (depending on what page you're on)
Click on +NEW PROJECT button at the top right or click on the +NEW GRID button at the top left (depending on what page you're on)
Lets bring in homicide data.
Problem: Even though the data from the UCR came in this horizontal format, the structure needed for the chart is vertical.
Solution: Copy and Paste special > Paste transpose.
Copy and paste the new columns into plotly.
Make sure the new columns are recognized by selecting choose as y.
Click the little gray triangle next to each of the Col names and click Rename. Change the headers to the titles.
Select the entire row and right click. Then select Remove selected row.
Your data is still in the tab on the top left in one of the Grid tabs.
Click in the box in the title, x axis, and y axis to change the text.
Select any of the premade themes on the left.
Or play around with the icons near the top.
Traces will let you change the color of each individual line.
The Legend icon will let you play with options like background color and position.
I got rid of the grid lines by clicking on AXES and then Lines and checking Grid lines to off.
This is one of the most useful parts about plotly.
Click NOTES then New text and text with an arrow will appear on the chart. From here, you can customize it by dragging it where you want to go and even hiding the arrowhead if you want.
Click SAVE and then Share.
Get the shareable link or the embed code. Whatever you need.
Or hover and find the camera icon and click it to save it as an image file.