• I want to add some graphs onto my own custom dashboard pages.
    I tried using the wordpress charts plugin. I first tried calling the wp_charts_shortcode() function directly which displayed nothing.
    I see then added the init function which I think were only trigger on the main pages.
    function wp_charts_kickoff() {
    add_action( “wp_enqueue_scripts”, “wp_charts_load_scripts” );
    add_action( ‘admin_enqueue_scripts’, “wp_charts_load_scripts” );
    add_action(‘wp_head’, ‘wp_charts_html5_support’);
    add_action( ‘admin_head’, ‘wp_charts_html5_support’ );
    add_shortcode( ‘wp_charts’, ‘wp_charts_shortcode’ );
    }

    add_action(‘init’, ‘wp_charts_kickoff’);

    But still nothing displayed.

    Can anybody help with this, or suggest an alternative package that can be used on the dashboard easily,

    Thanks

The topic ‘Graphs on Dashboard’ is closed to new replies.