Hi

    I am trying to use Sankey diagram 
fromhttp://github.com/tamc/Sankey/tarball/master  in Zeppelin note; however it 
is not showing any visual. The example used is 
‘tamc-Sankey-c6c6909/examples/simple.html’ from the above tar (same is shown 
below). I am running it with %angular. The example works standalone (in .html 
without Zeppelin note). The js src & css (in the script below) are from tar 
link provided above. Any suggestions on how to make it work? Thanks a lot.    
Regards, Suraj    ----------------code-------------------- %angular <script 
src="file:///media/zeppelin/tamc-Sankey-c6c6909/ext/raphael.js" 
type="text/javascript"></script> <script 
src="file:///media/zeppelin/tamc-Sankey-c6c6909/ext/jquery.js" 
type="text/javascript"></script> <script 
src="file:///media/zeppelin/tamc-Sankey-c6c6909/js/sankey.js" 
type="text/javascript"></script> <link rel="stylesheet" 
href="file:///media/zeppelin/tamc-Sankey-c6c6909/examples/css/style.css" /> 
<script type='text/javascript'>         $(document).ready(function() {         
var sankey = new Sankey();               sankey.stack(0,["Top","Bottom"]);      
   sankey.stack(1,["Merge"]);         sankey.stack(2,["Good","Bad"]);           
    
sankey.setData([["Top",100,"Merge"],["Bottom",50,"Merge"],["Merge",70,"Good"],["Merge",80,"Bad"]]);
         sankey.draw();         }); </script> <h1 style='width:1000px; 
text-align: center; margin-bottom: 0'>A very simple Sankey Diagram</h1> <div 
style='width:1000px; text-align: center; margin-top: 0'>Move your mouse over 
the diagram to show values</div> <div id='sankey' 
style="width:1000px;height:1000px">        &nbsp; </div>   <!--#yiv1644338845 
_filtered #yiv1644338845 {font-family:Calibri;panose-1:2 15 5 2 2 2 4 3 2 
4;}#yiv1644338845 #yiv1644338845 p.yiv1644338845MsoNormal, #yiv1644338845 
li.yiv1644338845MsoNormal, #yiv1644338845 div.yiv1644338845MsoNormal 
{margin:0in;margin-bottom:.0001pt;font-size:11.0pt;font-family:"Calibri", 
"sans-serif";}#yiv1644338845 a:link, #yiv1644338845 
span.yiv1644338845MsoHyperlink 
{color:blue;text-decoration:underline;}#yiv1644338845 a:visited, #yiv1644338845 
span.yiv1644338845MsoHyperlinkFollowed 
{color:purple;text-decoration:underline;}#yiv1644338845 
span.yiv1644338845EmailStyle17 {font-family:"Arial", 
"sans-serif";color:windowtext;}#yiv1644338845 span.yiv1644338845EmailStyle18 
{font-family:"Arial", "sans-serif";color:#1F497D;}#yiv1644338845 
.yiv1644338845MsoChpDefault {font-size:10.0pt;} _filtered #yiv1644338845 
{margin:1.0in 1.0in 1.0in 1.0in;}#yiv1644338845 div.yiv1644338845WordSection1 
{}-->

Reply via email to