GFChart

Charts and Counter for Gravity Forms

  • Home
  • Demo
    • Sample form
    • Sample output
    • Try before buy
  • You need?
    • Gravity Forms booking
    • Sales reports
    • Survey building tips
    • Surveys
    • Personal assessment quiz
    • Pre-configured templates
  • About
    • About
    • FAQs
    • Roadmap
    • Related Tools
  • Blog
  • Account
    • Account
    • Register
  • Support
    • Documentation
    • Contact
    • Request A Feature
    • Old forum
  • Buy

November 16, 2016 By Ben Ramsden

How to put a Gravity Forms chart onto the WordPress dashboard

Chart onto the WordPress dashboard

We are occasionally asked how to insert a chart onto the WordPress dashboard. For developers here is some example code (not guaranteed to work, and not supported by our help desk). This requires GFChart v1.4.0 or later.

add_action('init','br_gfcdash');
function br_gfcdash(){
  // Add a widget to the dashboard  
  function gfcbr_add_dashboard_widgets() {
    wp_add_dashboard_widget(
        'gfchart_dashboard_widget',        // Widget slug.
	 'GFChart',         		   // Title.
	 'gfcbr_dashboard_widget_function' // Display function.
	        );	
    }
    add_action( 'wp_dashboard_setup', 'gfcbr_add_dashboard_widgets' );
        // Output the contents of dashboard widget
	function gfcbr_dashboard_widget_function() {
	    // Display whatever it is you want to show.
	    echo do_shortcode('[gfchart id="1643"]');
            // Note: replace 1643 with your own id
	}
}

Filed Under: Case Studies

Purchase Now

  • Try the Demo
  • Buy

Get Social


Customer Support Resources

  • Account
  • Register
  • Documentation
  • Request A Feature
  • Support
  • Old Forum
  • Refund

General

  • About
  • FAQs
  • Terms and Conditions
  • Affiliates
  • Case Studies
  • News
  • Contact
  • Sitemap

I am looking for

  • Gravity Forms Booking
  • Gravity Forms Reports
  • Gravity Forms Surveys
  • Gravity Forms calculations
  • WordPress Chart Plugin
  • WordPress Reporting
mastercardvisaamexdiscoverpaypal

GFChart is a division of Mensard Pty Ltd ABN 12 140 276 866, Sydney, Australia © 2014-2018

Do you want to be first in line for enhancements this exciting and unique plugin?