Another problem that we might face is during the bad bandwidth connection
the script loading might take time. So we run up into a issue were the
sankey code that you are stated might start executing even before the
library is loaded.
Make a ajax call and wrap your code inside the promise to ensure
That resolves it. Thanks Anthony and Corneau!
Sent from Yahoo Mail on Android
On Thu, 21 Jan, 2016 at 9:06 PM, Anthony Corbacho
wrote:
Hi,
The problem is that you try to load a js file from raw githubusercontent, and
it will not work because of the mime of
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
Yes, problem seems to be with loading .js src files. However, if I provide
hosted links
likehttps://raw.githubusercontent.com/tamc/Sankey/master/js/sankey.js , it's
still failing.
Accessing of local files works in standalone html/js. Isn't there a way to
access local js src from Zeppelin note?
Hi,
I don't think the file path for the .js files can be reached this way. You
would need to point to a hosted file.
On Jan 21, 2016 7:52 PM, "Suraj" wrote:
> Hi
>
>
>
> I am trying to use Sankey diagram from
> http://github.com/tamc/Sankey/tarball/master in Zeppelin
Hi,
The problem is that you try to load a js file from raw githubusercontent,
and it will not work because of the mime of the content, if you look closer
to the response you get, you will notice that the file mime is plain text
instead of js. You should use cdn.rawgit instead.