Difference between revisions of "Widget:SunlampTableau"

From Open Energy Information

(added console.log s)
(added missing link tag)
 
Line 225: Line 225:
 
$('#viz1495825069608').append("<noscript><a href='#'><img alt='Utility Rates Modeled ' src='http:&#47;&#47;public.tableau.com&#47;static&#47;images&#47;Su&#47;SunLampResults-24April2017-forwebv4&#47;Method-Rates&#47;1_rss.png' style='border: none' /></a></noscript><object class='tableauViz'  style='display:none;'><param name='host_url' value='https%3A%2F%2Fpublic.tableau.com%2F' /> <param name='site_root' value='' /><param name='name' value='SunLampResults-24April2017-forwebv4&#47;Method-Rates' /><param name='tabs' value='no' /><param name='toolbar' value='yes' /><param name='static_image' value='http:&#47;&#47;public.tableau.com&#47;static&#47;images&#47;Su&#47;SunLampResults-24April2017-forwebv4&#47;Method-Rates&#47;1.png' /> <param name='animate_transition' value='yes' /><param name='display_static_image' value='yes' /><param name='display_spinner' value='yes' /><param name='display_overlay' value='yes' /><param name='display_count' value='yes' /></object>");
 
$('#viz1495825069608').append("<noscript><a href='#'><img alt='Utility Rates Modeled ' src='http:&#47;&#47;public.tableau.com&#47;static&#47;images&#47;Su&#47;SunLampResults-24April2017-forwebv4&#47;Method-Rates&#47;1_rss.png' style='border: none' /></a></noscript><object class='tableauViz'  style='display:none;'><param name='host_url' value='https%3A%2F%2Fpublic.tableau.com%2F' /> <param name='site_root' value='' /><param name='name' value='SunLampResults-24April2017-forwebv4&#47;Method-Rates' /><param name='tabs' value='no' /><param name='toolbar' value='yes' /><param name='static_image' value='http:&#47;&#47;public.tableau.com&#47;static&#47;images&#47;Su&#47;SunLampResults-24April2017-forwebv4&#47;Method-Rates&#47;1.png' /> <param name='animate_transition' value='yes' /><param name='display_static_image' value='yes' /><param name='display_spinner' value='yes' /><param name='display_overlay' value='yes' /><param name='display_count' value='yes' /></object>");
 
var divElement = document.getElementById('viz1495825069608');
 
var divElement = document.getElementById('viz1495825069608');
 +
var vizElement = divElement.getElementsByTagName('object')[0];
 +
vizElement.style.width='804px';vizElement.style.height='869px';
 +
var scriptElement = document.createElement('script');
 +
scriptElement.src = 'https://public.tableau.com/javascripts/api/viz_v1.js';
 +
vizElement.parentNode.insertBefore(scriptElement, vizElement);
 +
 +
$('#viz1495223422516').append("<p>-- Broken Chart Link --<p>");
 +
var divElement = document.getElementById('viz1495223422516');
 
var vizElement = divElement.getElementsByTagName('object')[0];
 
var vizElement = divElement.getElementsByTagName('object')[0];
 
vizElement.style.width='804px';vizElement.style.height='869px';
 
vizElement.style.width='804px';vizElement.style.height='869px';

Latest revision as of 13:20, 14 September 2017

This widget provides the Tableau visualizations for the Sunlamp webpages.

For example:

{{#Widget:SunlampTableau}}