{"id":30940,"date":"2014-08-02T00:20:01","date_gmt":"2014-08-02T00:20:01","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/plot-over-time-extended\/"},"modified":"2014-08-06T17:05:41","modified_gmt":"2014-08-06T17:05:41","slug":"plot-over-time-extended","status":"publish","type":"plugin","link":"https:\/\/twd.wordpress.org\/plugins\/plot-over-time-extended\/","author":8177944,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.4.0","stable_tag":"trunk","tested":"3.9.40","requires":"3.0","requires_php":"","requires_plugins":"","header_name":"Plot Over Time - Extended","header_author":"Rodger Cravens","header_description":"","assets_banners_color":"fafafa","last_updated":"2014-08-06 17:05:41","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"http:\/\/www.save-o-matic.com","header_author_uri":"http:\/\/www.save-o-matic.com","rating":5,"author_block_rating":0,"active_installs":10,"downloads":1516,"num_ratings":1,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":{"1.4":"<p>Fixed post_cat and maxdays issue created by SQL cleanup in previous version<\/p>"},"ratings":{"1":0,"2":0,"3":0,"4":0,"5":"1"},"assets_icons":[],"assets_banners":{"banner-772x250.png":{"filename":"banner-772x250.png","revision":"959066","resolution":"772x250","location":"assets"}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":[],"block_files":[],"assets_screenshots":{"screenshot-2.png":{"filename":"screenshot-2.png","revision":"1539332","resolution":"2","location":"plugin"},"screenshot-3.png":{"filename":"screenshot-3.png","revision":"1539332","resolution":"3","location":"plugin"},"screenshot-1.png":{"filename":"screenshot-1.png","revision":"1539332","resolution":"1","location":"plugin"}},"screenshots":{"1":"Example of AreaGraph formatted data","2":"Example of LineChart formatted data","3":"Example of the PieChart formatted data"},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[2510,2010,30850,2509,30851],"plugin_category":[],"plugin_contributors":[],"plugin_business_model":[],"class_list":["post-30940","plugin","type-plugin","status-publish","hentry","plugin_tags-chart","plugin_tags-custom-fields","plugin_tags-google-chart-api","plugin_tags-graph","plugin_tags-weight-tracking","plugin_committers-rdcravens"],"banners":{"banner":"https:\/\/ps.w.org\/plot-over-time-extended\/assets\/banner-772x250.png?rev=959066","banner_2x":false,"banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/plot-over-time-extended_fafafa.svg","icon_2x":false,"generated":true},"screenshots":[{"src":"https:\/\/ps.w.org\/plot-over-time-extended\/trunk\/screenshot-1.png?rev=1539332","caption":"Example of AreaGraph formatted data"},{"src":"https:\/\/ps.w.org\/plot-over-time-extended\/trunk\/screenshot-2.png?rev=1539332","caption":"Example of LineChart formatted data"},{"src":"https:\/\/ps.w.org\/plot-over-time-extended\/trunk\/screenshot-3.png?rev=1539332","caption":"Example of the PieChart formatted data"}],"raw_content":"<!--section=description-->\n<p>I have used Plot Over Time for a long time when found that I needed to put multiple charts on one page and category restrictions. The plugin did not allow it. I am insistent on not needing a new plugin - as this one has worked just fine for me\u2026 So, I made changes.<\/p>\n\n<p>My first change is small in user effort, but large in execution... I added an optional parameter for chart_num. This optional parameter is not needed if you are using the plugin for a single chart page. It is only needed to identify what chart you are making on a multi-chart page...<\/p>\n\n<p><strong>Single chart on a page...<\/strong><\/p>\n\n<pre><code>[plot_ext field1=\"Heart Rate\"]\n<\/code><\/pre>\n\n<p><strong>Multi-Chart page...<\/strong><\/p>\n\n<pre><code>[plot_ext field1=\"Heart Rate\" chart_num=\"1\"]\n[plot_ext field1=\"Blood Pressure\" chart_num=\"2\"]\n<\/code><\/pre>\n\n<p>Want to see it in action?  http:\/\/www.ourroadtohealth.com\/index.php\/data-collection\/total-blood-pressure\/<\/p>\n\n<p>My second change... I added an optional parameter for post category restriction. This optional parameter is not needed if you are pulling from all post categories. It is only needed to identify what 1 post category you want to limit the data to...<\/p>\n\n<p><strong>Single chart on a page with category selection...<\/strong><\/p>\n\n<pre><code>[plot_ext field1=\"Heart Rate\" post_cat=\"8\"]\n<\/code><\/pre>\n\n<p><strong>Let's Get Started: <\/strong><\/p>\n\n<p><strong>1. <\/strong>To get it up and running: first, you'll need to put data in your posts.  So, in a post, go to the section under your post called \"Custom Fields\". Create a field you want to track (for instance, \"Heart Rate\") and give it a value.<\/p>\n\n<p><strong>2. <\/strong>You'll need at lest two posts with data in them before the plugin can do it's thing - so add data to another post.<\/p>\n\n<p><strong>3. <\/strong>Now that you have at least two posts with data, you can create a post that creates a graph.  For this example, you could simply use:<\/p>\n\n<pre><code>[plot_ext field1=\"Heart Rate\"]\n<\/code><\/pre>\n\n<p>This will go through all posts that have a custom field called \"Heart Rate\" and plot them on a nice Google Chart Tools LineChart. Plot Over Time - Extended supports up to 10 fields per graph.  If you wanted to work with more points of data (again, up to 10), simply add more Custom Fields:<\/p>\n\n<pre><code>[plot_ext field1=\"Heart Rate\" field2=\"Weight\" field3=\"Workout Time\"]\n<\/code><\/pre>\n\n<p>The legend is automatically added, and each datapoint is able to be clicked to get a callout about it's datapoint. Or you can move the legend around with legend=\"left\" or legend=\"right\". If you want to get rid of the legend:<\/p>\n\n<pre><code>[plot_ext field1=\"Heart Rate\" legend=\"none\"]\n<\/code><\/pre>\n\n<p><strong>Types: <\/strong>Valid types chart types for Plot Over Time are:  AreaChart, LineChart, PieChart (not particularly useful in this implementation), BarChart, and ColumnChart. To use other types of graphs:<\/p>\n\n<pre><code>[plot_ext field1=\"Heart Rate\" type=\"BarChart\"]\n<\/code><\/pre>\n\n<p><strong>Height \/ Width: <\/strong>You can set your own width and height for the chart with Width and Height (default: 400 X 300). Don't change the height or width using the options=\"height: \", instead use height=\"300\" or similar.  Changing it in the options that are passed to the graph won't change the size of the div it exists in.<\/p>\n\n<pre><code>[plot_ext field1=\"Heart Rate\" width=\"500\" height=\"300\"] \n<\/code><\/pre>\n\n<p><strong>Data Limits: <\/strong>By default, Plot Over Time uses ALL data from all posts and pops it onto a graph.  You can limit it with two options:<\/p>\n\n<p><strong>1. <\/strong>You can determine the maximum number of days worth of data (starting from now and going backward) with maxdays. This would show a one month span of data:<\/p>\n\n<pre><code>[plot_ext field1=\"Heart Rate\" maxdays=\"30\"]\n<\/code><\/pre>\n\n<p><strong>2. <\/strong>You can attach a graph to that post's published date with usepostdate:<\/p>\n\n<pre><code>[plot_ext field1=\"Heart Rate\" usepostdate=\"true\"]\n<\/code><\/pre>\n\n<p>So if the post was 3 weeks old, it would only show data from it's publication date of three weeks ago and older - <strong>this allows you to see changes post by post<\/strong>!<\/p>\n\n<p><strong>Dates: <\/strong>The date format defaults to m\/d\/y - IE, 12\/31\/11.  You can change it with dateformat. This would instead put 2011-12-31 on the graph:<\/p>\n\n<pre><code>[plot_ext field1=\"Heart Rate\" dateformat=\"Y-m-d\"]\n<\/code><\/pre>\n\n<p><strong>Titles: <\/strong>This would add a title above your graph that reads \"My Graph!\".<\/p>\n\n<pre><code>[plot_ext field1=\"Heart Rate\" options=\"'title': 'My Graph!'\" chart_num=\"1\"]\n<\/code><\/pre>\n\n<p><strong>Wrapping Up: <\/strong>Don't like the colors of the graph, or want to add a few new options?  No problem - any Google Visualization Tools options is available using the option parameters.<\/p>\n\n<p><strong>More Info: <\/strong>For more information on the options available visit the Google Chart Tools homepage: http:\/\/code.google.com\/apis\/chart\/index.html<\/p>\n\n<p><strong>Rules: <\/strong><\/p>\n\n<p><strong>1. <\/strong>If you define 5 fields you want to read from, and a post only had four fields?  It's going to ignore you.<\/p>\n\n<p><strong>2. <\/strong>It doesn't do data interpolation.  If there's a gap in your data, it simply ignores it - it doesn't give it a \"0\", it just plain doesn't plot it.  (That's how he wanted it.  Other opinions may differ - mine does not.)<\/p>\n\n<p><strong>3. <\/strong>f you tell it you want to see 30 days of data, and you've only got three days of data in your posts?  It's only going to show a graph that spans three days.<\/p>\n\n<p><strong>All data integrity is up to you.<\/strong><\/p>\n\n<p><strong>If you download, please rate the plugin. This is one of the few feedback methods available. If you have a low opinion, please allow me to try to fix it first before leaving a bad review.<\/strong><\/p>\n\n<!--section=installation-->\n<ol>\n<li>Download the Plot Over Time plugin and you will get a directory called \"plot_ext\" when you unzip the downloaded file. Upload the \"plot_ext\" directory to your WordPress plugin's directory (e.g. <code>\/wp-content\/plugins\/<\/code>)<\/li>\n<li>Activate the plugin through the 'Plugins' menu in the Wordpress dashboard.<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt>Is it possible to go beyond the 10 field limit?<\/dt>\n<dd><p>Yes, but it would take code changes. I could do it, but I did not see a need at this time. If you have a need, let me know and I might be able to slip it into the next release.<\/p><\/dd>\n<dt>Can you add this \/ that \/ the other?<\/dt>\n<dd><p>Yes, but I have no time lines that I would do it in. I might finish tomorrow, I might finish next month. I gladly take requests as just that, requests... I am not asking for money, so please do not have expectations beyond a free service...<\/p><\/dd>\n<dt>Did you write this plugin from scratch?<\/dt>\n<dd><p>The greatest form of flattery is plagiarism :-) I am not the original author of the base plugin - I highly modified an existing one. This is a modified and re-branded version of the Plot Over Time plugin by MidnightRyder: http:\/\/www.midnightryder.org<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<p>Version 1.0, July 30, 2014  - Initial Release\nVersion 1.1, July 30, 2014  - Issues with dates solved\nVersion 1.2, July 30, 2014  - Minor issue with width settings\nVersion 1.3, July 30, 2014  - Reduced SQL time, fixed data sorting and limit issues from original plug-in\nVersion 1.4, July 30, 2014  - Fixed post_cat and maxdays issue created by SQL cleanup in previous version<\/p>","raw_excerpt":"I have used Plot Over Time for a long time when found that I needed to put multiple charts on one page and category restrictions.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/30940","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=30940"}],"author":[{"embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/rdcravens"}],"wp:attachment":[{"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=30940"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=30940"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=30940"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=30940"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=30940"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=30940"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}