Hello I want to bring in some simple SG data analytics for my team and want to draw linear regression lines on top of history graphs to be able to sample predictions into the future more accurately. Any advice to point me to the right files that render the graphs would be fantastic!
Thanks for your question! Currently our graph widget options don’t include a regression line overlay for the change over time graphs.
While there’s no out-of-the box integration between Shotgun and Google Analytics, both systems have a Python API so you could conceivably pull the data you need from Shotgun and send it over to Google. A couple links for reference:
I found an acceptable solution using the BI software Tableau that can make a regression plot. However, I tried these URLs/html in the URL widget in the Insights design page and all I get are errors.
In order to host external urls in a SG URL Widget, the source media must allow itself to be embedded in an iFrame. You’d need to talk to the Tableau folks about if they’re denying iFrame embedding or not. If you’re hosting your graphs locally or on a server where you have control over embedding options (at the Apache or nginx level: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Frame-Options), you’ll probably get more mileage that way. I hope this helps!
We’ve done what @tony suggested with a Flask server wrapping https://plot.ly widgets embedded in Shotgun URL views/tabs. We like that because we can do all sorts of data-crunching in python and serve a clean little endpoint, rather than having to construct a huge URL with data-analysis and formatting limitations.