WordPress plugin intelligence profile

Wp Custom Field Chart

Make chart from custom field attached to your post/page using Chart.js javascript library.

WP PlugIndex snapshot

Current directory snapshot

Tested up to WordPress 3.9
Current version0.0.5
WordPress coverageTested up to WordPress 3.9
Minimum stackWP 3.9.1 · PHP —
Directory statusactive
Last directory update18 Aug 201412y ago
Active installations10Adoption metric — not a quality score
WordPress.org ratingNo WordPress.org ratings yet
Official packageDirect from WordPress.org

Repository metrics are context, not quality scores. Active installations measure adoption and can strongly reflect a plugin’s age and historical popularity. Ratings, recent updates and “Tested up to” metadata also do not guarantee modern code, error-free operation, security, feature completeness or suitability for a particular site. Why active installs don’t tell the whole story →

WP PlugIndex currently records Wp Custom Field Chart version 0.0.5 as active, updated 12y ago and tested up to WordPress 3.9.

Overview

About this plugin

This plugin collect data attached to post/article via custom field and make

chart of it.

js for chart drawing ChartJs

Data are collected by looking for specific custom field attached to your

post/page. You can change aggregation method, intervall…

See usage

Usage

Edit your post/page in text mode and put some Javascript and a WordPress tag

Minimum

<script> var mydata = { datasets: [{}]}; </script> [custom_field_chart fields="humidity" js_data="mydata"]

For each field you need to put empty {} into datasets.

For two fields:

<script> var mydata = {datasets: [{},{}]} </script> [custom_field_chart fields="humidity,temperature" js_data="mydata"]

But it’s pretty useless to put more than one field without different colors 🙂

More

<script> var mydata = { datasets: [ { label: "Humidity", fillColor: "rgba(255,73,0,1)", strokeColor: "rgba(255,73,0,1)", pointColor: "rgba(255,73,0,1)", pointStrokeColor: "#fff", pointHighlightFill: "#fff", pointHighlightStroke: "rgba(220,220,220,1)", }, { label: "Temperature", fillColor: "rgba(255,73,0,1)", strokeColor: "rgba(255,73,0,1)", pointColor: "rgba(255,73,0,1)", pointStrokeColor: "#fff", pointHighlightFill: "#fff", pointHighlightStroke: "rgba(220,220,220,1)", }, ] };

2, barStrokeWidth: 2, barValueSpacing: 2, barDatasetSpacing: 0, };

// Optional... onAnimationComplete = function(){ alert('Hello'); } }); // End optional </script>

[custom_field_chart width="1000" height="300" kind="line" method="track" interval="day" interval_count="31" fields="humidity,temperature" js_data="mydata" js_options="myopts"]

Notes

  • js_data and js_options must reflect name given to your javascript variable.
  • Look at http://chartjs.org/ for documentation
  • You don’t need to supply labels and data (like in chartjs.org example) 🙂

Tag attributes

= Required =

1. fields: Custom field separate by comma

1. js_data: Name of javascript variable holding chart datasets

Optional

  • width: Chart width (default: 400)
  • height: Chart Height (default: 200)
  • method: Aggregate method track, delta or cumulative (defaul: track)
  • interval: year, month, day (default: day)
  • interval_count: How many year, mont or day (default: 31)
  • js_options: Name of javascript variable holding chart options
  • kind: Chart type line or bar (default: line)
  • to_date: Current date by default, post date if ‘post’ specified else value supplied
  • dump: Dumping attributes for debug (default: False)
  • round: Rounding data with specified precision

Note

Beta software… Interface may change.

WordPress.org metadata

Plugin tags

Topics listed for this plugin in the WordPress.org directory.

  • custom field
  • chart
  • javascript
Compatibility & maintenance

Compatibility & maintenance

Tested up to WordPress 3.9

Not yet marked as tested with WordPress 7.1. WordPress.org currently lists Tested up to 3.9.

Current WordPress releaseWordPress 7.1
WordPress.org Tested up to3.9
Minimum requirementsWordPress 3.9.1 · PHP not listed
Update activity18 Aug 201412y ago

“Tested up to” is directory metadata supplied by the plugin author. WP PlugIndex does not turn an older declaration into a claim that the plugin is incompatible.

Changes recorded by WP PlugIndex

Recent tracked changes

No tracked version or compatibility changes have been recorded by WP PlugIndex yet.

Tracking & source

WP PlugIndex tracks public WordPress.org directory metadata and records selected version, compatibility and availability changes as they are detected.

Plugin watchlist

Watch this plugin

Sign in to your WP PlugIndex account or create a free account. Free accounts can watch up to 5 plugins and see what changed.

Watch limit

Watchlist limit reached

You have reached your current active watch limit.