Support » Plugin: WordPress Charts » Shortcode not working

  • I am trying to using your sample shortcode in my files like forllowing way :-

    echo do_shortcode( ‘[wp_charts title=”barchart” type=”bar” align=”alignleft” margin=”5px 20px” datasets=”40,32,50,35 next 20,25,45,42 next 40,43, 61,50 next 33,15,40,22″ labels=”one,two,three,four”]’ );

    But above code doesn’t reflect anything on a page but only acquire space of the chart. As html will be loaded but doesn’t show anything on screen.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi I guess you are trying to display chart in the admin; I have the same problem; have figure it out?

    In case you still need it…I figured it out….you need to force loading WP-Chart scripts. By default scripts are only loaded in the front-end.

    Just add the following line to your script:

    wp_charts_load_scripts( true );

    Mayte

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Shortcode not working’ is closed to new replies.