[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"$fxAyTpTg31FZqeimB5zI0Eb9gyVT5IojLxZPr8ZM7lGw":3},{"slug":4,"display_name":5,"profile_url":6,"plugin_count":7,"total_installs":8,"avg_security_score":9,"avg_patch_time_days":10,"trust_score":11,"computed_at":12,"plugins":13},"midnightryder","Davis Ray Sickmon Jr","https:\u002F\u002Fprofiles.wordpress.org\u002Fmidnightryder\u002F",1,10,100,30,94,"2026-04-04T23:27:18.313Z",[14],{"slug":15,"name":16,"version":17,"author":5,"author_profile":6,"description":18,"short_description":19,"active_installs":8,"downloaded":20,"rating":9,"num_ratings":7,"last_updated":21,"tested_up_to":22,"requires_at_least":23,"requires_php":21,"tags":24,"homepage":30,"download_link":31,"security_score":9,"vuln_count":32,"unpatched_count":32,"last_vuln_date":33,"fetched_at":34},"plot-over-time","Plot Over Time","1.0.0","\u003Cp>I ran across Tom Fotherby’s Fotherplot when I was looking for a slick way to set up graphs for a workout log.  Being the type that can’t stand to leave things alone, I had to hack on it a bit to change a few things… upgrade it to the most modern version of Google Chart Tools, add multiple data points, etc… until finally, well… I think the only thing left of the original plugin is the GNU license.\u003C\u002Fp>\n\u003Cp>Want to see it in action?  I’m using it in http:\u002F\u002Fwww.midnightryder.org\u002Fcategory\u002Fworkout-log\u002F\u003C\u002Fp>\n\u003Cp>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.\u003C\u002Fp>\n\u003Cp>You’ll need at lest two posts with data in them before Plot Over Time can do it’s thing – so add data to another post.\u003C\u002Fp>\n\u003Cp>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:\u003C\u002Fp>\n\u003Cpre>\u003Ccode>[plotovertime field1=\"Heart Rate\"]\n\u003C\u002Fcode>\u003C\u002Fpre>\n\u003Cp>This will go through all posts that have a custom field called “Heart Rate” and plot them on a nice Google Chart Tools LineChart.  If you wanted to work with more points of data, simply add more Custom Fields:\u003C\u002Fp>\n\u003Cpre>\u003Ccode>[plotovertime field1=\"Heart Rate\" field2=\"Weight\" field3=\"Workout Time\"]\n\u003C\u002Fcode>\u003C\u002Fpre>\n\u003Cp>Plot Over Time support up to 10 fields per graph.\u003C\u002Fp>\n\u003Cp>The legend is automatically added, and each datapoint is able to be clicked to get a callout about it’s datapoint.  If you want to get rid of the legend:\u003C\u002Fp>\n\u003Cpre>\u003Ccode>[plotovertime field1=\"Heart Rate\" legend=\"none\"]\n\u003C\u002Fcode>\u003C\u002Fpre>\n\u003Cp>Or you can move the legend around with legend=”left” or legend=”right”.\u003C\u002Fp>\n\u003Cp>To use other types of graphs:\u003C\u002Fp>\n\u003Cpre>\u003Ccode>[plotovertime field1=\"Heart Rate\" type=\"BarChart\"]\n\u003C\u002Fcode>\u003C\u002Fpre>\n\u003Cp>Valid types chart types for Plot Over Time are:  AreaChart, LineChart, PieChart (not particularly useful in this implementation), BarChart, and ColumnChart.\u003C\u002Fp>\n\u003Cp>You can set your own width and height for the chart with Width and Height:\u003C\u002Fp>\n\u003Cpre>\u003Ccode>[plotovertime field1=\"Heart Rate\" width=\"500\" height=\"300\"] \n\u003C\u002Fcode>\u003C\u002Fpre>\n\u003Cp>By default, Plot Over Time uses ALL data from all posts and pops it onto a graph.  You can limit it with two options:\u003C\u002Fp>\n\u003Cp>1)  You can determine the maximum number of days worth of data (starting from now and going backwards) with maydays:\u003C\u002Fp>\n\u003Cpre>\u003Ccode>[plotovertime field1=\"Heart Rate\" maxdays=\"30]\n\u003C\u002Fcode>\u003C\u002Fpre>\n\u003Cp>This would show a one month span of data.\u003C\u002Fp>\n\u003Cp>2)  You can attach a graph to that post’s published date with usepostdate:\u003C\u002Fp>\n\u003Cpre>\u003Ccode>[plotovertime field1=\"Heart Rate\" usepostdate=\"true\"]\n\u003C\u002Fcode>\u003C\u002Fpre>\n\u003Cp>So if the post was 3 weeks old, it would only show data from it’s publication date of three weeks ago and older.\u003C\u002Fp>\n\u003Cp>The date format defaults to m\u002Fd\u002Fy – IE, 12\u002F31\u002F11.  You can change it with dateformat:\u003C\u002Fp>\n\u003Cpre>\u003Ccode>[plotovertime field1=\"Heart Rate\" dateformat=\"Y-m-d\"]\n\u003C\u002Fcode>\u003C\u002Fpre>\n\u003Cp>Would instead put 2011-12-31 on the graph.\u003C\u002Fp>\n\u003Cp>And finally:  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 parameter:\u003C\u002Fp>\n\u003Cpre>\u003Ccode>[plotovertime field1=\"Heart Rate\" options=\"title: 'My Cool Graph!';\"]\n\u003C\u002Fcode>\u003C\u002Fpre>\n\u003Cp>This would add a title above your graph that reads “My Cool Graph!”.  Note – 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.\u003C\u002Fp>\n\u003Cp>For more information on the options available visit the Google Chart Tools homepage: http:\u002F\u002Fcode.google.com\u002Fapis\u002Fchart\u002Findex.html\u003C\u002Fp>\n\u003Cp>And of course, you can mix and match any of the shortcode commands in any way you want.  have fun!\u003C\u002Fp>\n\u003Cp>Now, about that data… you’ll want to know a couple of rules.\u003C\u002Fp>\n\u003Cp>First, if you define 5 fields you want to read from, and a post only had four fields?  It’s going to ignore you.\u003C\u002Fp>\n\u003Cp>Second, 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 I wanted it.  Other opinions may differ.)\u003C\u002Fp>\n\u003Cp>Third, if 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.\u003C\u002Fp>\n\u003Cp>All data integrity is up to you.\u003C\u002Fp>\n\u003Cp>And it will pull data from ALL posts, not just posts in a specific category.  For future updates I’ll probably add a category field that allows you to pull data from a single category.\u003C\u002Fp>\n\u003Cp>This plugin is a quick “one off” I did for myself – it’s not nearly as pretty or efficient as it could be, and I’ll probably do some refactoring on it in the future if there’s any interest.  Plus, there’s probably a couple of other things I’ll add down the road as the whim strikes.\u003C\u002Fp>\n","Uses the Google Chart Tools API for charting data in posts.  Tracks up to 10 different data points, 4 chart types, & lots of customization.",2214,"","3.2.1","3.0",[25,26,27,28,29],"chart","custom-fields","google-chart-api","graph","weight-tracking","http:\u002F\u002Fwww.midnightryder.com\u002Fwordpress-plugins\u002Fplot-over-time-for-wordpress","https:\u002F\u002Fdownloads.wordpress.org\u002Fplugin\u002Fplot-over-time.zip",0,null,"2026-03-15T10:48:56.248Z"]