Exercise from Section 2 of the Data Vizualition For All course… https://macedossaulo.github.io/DataViz4All
interactive chart exercise
<title>sample web page</title> <script type='text/javascript'> var divElement = document.getElementById('viz1490281993438'); var vizElement = divElement.getElementsByTagName('object')[0]; vizElement.style.width='100%';vizElement.style.height=(divElement.offsetWidth*0.75)+'px'; var scriptElement = document.createElement('script'); scriptElement.src = 'https://public.tableau.com/javascripts/api/viz_v1.js'; vizElement.parentNode.insertBefore(scriptElement, vizElement); </script>