Adds shortcodes to easily add line and pie charts to your pages using the Flot library.
Author: | Youssou Haagsman (profile at wordpress.org) |
WordPress version required: | 2.5 |
WordPress version tested: | 4.4.4 |
Plugin version: | 0.2.2 |
Added to WordPress repository: | 28-02-2014 |
Last updated: | 14-12-2015
Warning! This plugin has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.
|
Rating, %: | 100 |
Rated by: | 1 |
Plugin URI: | http://www.youssouhaagsman.nl/wpflot/ |
Total downloads: | 2 901 |
Active installs: | 30+ |
Click to start download
|
Screenshots
Line chart made with WP Flot.
By putting the shortcode inside a div set to float, you can have your posts flow around the charts.
FAQ
My chart doesn’t show up
- Make sure your data doesn’t contain any errors, such as a misplaced comma. The web inspector of your browser can help you with this.
- Check the source of the page, if the javascript contains an html tags, such as p or br, there probably is a problem with the wpautop filter.
- If this is the first time you view your page, try reloading. The necessary files are not included on the first time the page is loaded.
I want a fancy graph not supported by the shortcodes
Flot supports much more advanced graphs than are supported with these shortcodes, but you can add these manually. If you set the custom field ‘flot’ to ‘yes’, the plugin will load Flot for you. You can then just add your own javascript code in the editor. Check the Flot websites for a number of examples.
ChangeLog
- 0.1 – First version
- 0.1.1 – Problems with the style of the legend fixed.
- 0.1.2 – Added barcharts.
- 0.1.3 – Added translation: Dutch. Small bug fixes.
- 0.1.4 – No longer needed to set shortcodes. Reduced size for javascript files. Graphs will show properly on home pages, categories etc.
- 0.1.5 – Update to Flot 0.8.3.
- 0.2 – Support for Shortcake, a plugin to make adding shortcodes easier. Unfortunately, because of the Javascript requirement for the charts, they won’t properly preview in TinyMCE.
- 0.2.1 – Update for Shortcake 0.3.
- 0.2.2 – Update for Shortcake 0.4.