Sankey Chart in the dashboard

(3 posts) (2 voices)
  1. ajdjackson, Member

    Hi

    I've created a Sankey Chart in the report that is my dashboard.

    If I run this report directly the Sankey is displayed OK however when the report is called as the dashboard the chart is not displayed.

    Inspecting the element I can see the code to produce the chart. There is a JavaScript error - VM63:20 Uncaught ReferenceError: d3 is not defined which may or may not be the cause.

    Opening VM63:20 line 20 has

    var formatNumber = d3.format(sankey_data.format.number),

    Any thoughts?

    Thanks

    Jake

  2. myDBR Team, Key Master

    The Sankey chart is created using JavaScript, so it needs the libraries to be included.

    Easiest way to include a Sankey Chart to dashboard is to use the object-tag:

    <object width="400" height="400" type="text/html" data="http://yourserver.com/mydbr/report.php?r=1211%h=ca200dea0951eec4423b718b93dbdb1057d45755&hdr=0"></object>

    --
    myDBR Team

  3. ajdjackson, Member

    Thanks that worked.

    Cheers

    Jake


Reply

You must log in to post.