The Walden Effect: Farming, simple living, permaculture, and invention.

postsparkline

The postsparkline directive is supplied by the [[!iki plugins/postsparkline desc=postsparkline]] plugin.

This directive uses the [[!iki plugins/sparkline desc=sparkline]] plugin to create a sparkline of statistics about a set of pages, such as posts to a blog.

examples

Post interval: 
[[!postsparkline  pages="blog/* and !*/Discussion" max=100
formula=interval style=bar barwidth=2 barspacing=1 height=13]]

Posts per month this year: 
[[!postsparkline  pages="blog/* and !*/Discussion" max=12
formula=permonth style=bar barwidth=2 barspacing=1 height=13]]

usage

All options aside from the pages, max, formula, time, and color options are the same as in sparkline directive.

You don't need to specify any data points (though you can if you want to). Instead, data points are automatically generated based on the creation times of pages matched by the specified pages PageSpec. A maximum of max data points will be generated.

The formula parameter controls the formula used to generate data points. Available formulae:

The time parameter has a default value of "ctime", since formulae use the creation times of pages by default. If you instead want them to use the modification times of pages, set it to "mtime".

To change the color used to draw the sparkline, use the color parameter. For example, "color=red".



Anna Hess's books
Want more in-depth information? Browse through our books.

Or explore more posts by date or by subject.

About us: Anna Hess and Mark Hamilton spent over a decade living self-sufficiently in the mountains of Virginia before moving north to start over from scratch in the foothills of Ohio. They've experimented with permaculture, no-till gardening, trailersteading, home-based microbusinesses and much more, writing about their adventures in both blogs and books.



Want to be notified when new comments are posted on this page? Click on the RSS button after you add a comment to subscribe to the comment feed, or simply check the box beside "email replies to me" while writing your comment.






profile counter myspace



Powered by Branchable Wiki Hosting.

Required disclosures:

As an Amazon Associate, I earn a few pennies every time you buy something using one of my affiliate links. Don't worry, though --- I only recommend products I thoroughly stand behind!

Also, this site has Google ads on it. Third party vendors, including Google, use cookies to serve ads based on a user's prior visits to a website. Google's use of advertising cookies enables it and its partners to serve ads to users based on their visit to various sites. You can opt out of personalized advertising by visiting this site.