• Resolved Chris_Homan

    (@chris_homan)


    Hi,

    When trying the various shortcodes, I don’t see any charts. The plugin has been activated fine and I disabled all plugins (and set to 2013 theme).

    With the demo shortcode I get an empty table:

    <table><tbody><tr class="demo_nvd3"><td id="chart1" class="odds_nvd3"></td><td id="chart2"></td></tr><tr class="demo_nvd3"><td id="chart3"></td><td id="chart4" class="odds_nvd3"></td></tr><tr class="demo_nvd3"><td id="chart5" class="odds_nvd3"></td><td id="chart6"></td></tr><tr class="demo_nvd3"><td id="chart7"></td><td id="chart8" class="odds_nvd3"></td></tr><tr class="demo_nvd3"><td id="chart9" class="odds_nvd3"></td><td id="chart10"></td></tr><tr class="demo_nvd3"><td id="chart11"></td><td id="chart12" class="odds_nvd3"></td></tr></tbody></table>

    With the example code “[loadNVD3]
    Default Chart’s Demo
    [jsChart]

    Scatter Chart’s Demo
    [jsChart type=”scatterbubble”]”

    I get an empty svg tag:

    <p><br>
    Default Chart’s Demo<br>
    </p>
    <div id="chart9878" style=" float:none;  "><svg style="height:250px; width:450px;"></svg></div>

    Any suggestions?

    https://www.ads-software.com/plugins/nvd3-visualisations/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Jouni Santara

    (@jouni-santara)

    Hi Cris,

    It looks like JavaScript fails with your setup somehow.

    If you have Chrome/Firefox can you use Firebug extension with your browser?

    https://getfirebug.com/downloads

    If you right-click your open loaded (empty) gallery page + “inspect with firebug” you can go to console card of Firebug where you see what really goes on when gallery loads in.

    Just reload the gallery when you have console open.

    Now, I would like to know & check error message that happens when things go wrong.

    Thread Starter Chris_Homan

    (@chris_homan)

    Found the problem. I’m running multisite and the javascripts were not referenced correctly.

    In nvd3.php I changed line 17 from
    $root = 'wp-content/plugins/'.$rood_dir.'/';
    to
    $root = WP_PLUGIN_URL.'/'.$rood_dir.'/';

    All is now working

    Plugin Author Jouni Santara

    (@jouni-santara)

    Great!

    You might also like to try:
    $root = plugins_url().’/’.$rood_dir.’/’;

    Based on this minor note:
    https://www.ads-software.com/support/topic/dont-use-wp_plugin_url?replies=3

    I put this fix out with the release 1.6.3 also.

    Thank you !

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Demo not loading’ is closed to new replies.