Great video. Straight to the point. You've become my go-to source for spreadsheet -python matters. Keep it up! One question tho: You called go.scatter but the graph produced looks like a line chart. What am I missing?
Thanks for the kind words! 😄 you can use plotly’s Scatter function for both lines and scatters (A little strange to me as well, haha) if you want a scatter all you would need is a keyword argument of mode=‘markers’ in the Scatter function
Thanks for the kind words! Seaborn is usually my go to whenever there's already matplotlib being used elsewhere in the project. I feel like it's super easy to integrate in those cases (probably nothing more than personal bias though). Plotly does awesome in my opinion for the interactive stuff and when it comes to moving graphs online or hosting graphs on their site
Very nice. I am assuming that if I will also be able to plot a WMA for example, as a technical indicator on the .html chart. Also, I love the idea of posting it to a website instead too. For example, I can save it on my local website folder and upload to site via FTP, or maybe this can be sent directly there. Will check on it. Nice to test with fresh downloaded data too. Thanks.
Nothing showed up after I ran fig.show(). Did I do something wrong? from matplotlib import pyplot as plt import pandas as pd from plotly import graph_objs as go excel_file = "Python_Practice_Chart.xlsx" df = pd.read_excel(excel_file) data = [go.Scatter(x=df['Date'], y = df["RN"])] fig = go.Figure(data) fig.show()
Hi Derrick, If I used Dash Plotly library to run demo , Could I output offline html file as your, I also did but Couldn’t, so how to share localhost for my teammate view chart? Big thanks
Great share, thanks! Is there a way to insert that html output into a ppt file, in order to create an interactive graph in a presentation? Btw, which editor are you using in the video? Thanks in advance
Thanks! The editor I'm using is Atom (atom.io). As far as working with ppt, I'm not really sure but that seems like a great use case. I believe powerpoint does allow javascript (which is all that these interactive charts are), but honestly not sure. Interested to know if it does if you get it working!
ImportError: cannot import name 'graph_objs' from partially initialized module 'plotly' (most likely due to a circular import can you help me to solve this error