<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Tortoise IT &#187; Statistics</title>
	<atom:link href="http://www.sean-barton.co.uk/category/statistics/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.sean-barton.co.uk</link>
	<description>by Sean Barton, a freelance PHP website developer in Crewe, Cheshire</description>
	<lastBuildDate>Tue, 31 Jan 2012 17:34:43 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>Google Charts overview</title>
		<link>http://www.sean-barton.co.uk/2008/08/google-charts-overview/</link>
		<comments>http://www.sean-barton.co.uk/2008/08/google-charts-overview/#comments</comments>
		<pubDate>Mon, 18 Aug 2008 21:53:55 +0000</pubDate>
		<dc:creator>Sean</dc:creator>
				<category><![CDATA[Google Charts]]></category>
		<category><![CDATA[Statistics]]></category>
		<category><![CDATA[Time Savers]]></category>

		<guid isPermaLink="false">http://www.sean-barton.co.uk/?p=44</guid>
		<description><![CDATA[I came across Google Charts the other day and wanted to let people know what it&#8217;s all about. I found it incredibly easy to use to make a simple chart but a little more complicated to make something more complex. The hello world example is given as follows: http://chart.apis.google.com/chart?cht=p3&#038;chd=t:60,40&#038;chs=250x100&#038;chl=Hello&#124;World (should be used within an &#60;img src=&#8221;" /&#62; tag) To be clear, Google Charts does not use an API key system like Google Maps which takes a layer of complication away. Let me break up the key parts of the url used to generate the above example&#8230; The first part http://chart.apis.google.com/chart? &#8230; <a class="continue_reading" href="http://www.sean-barton.co.uk/2008/08/google-charts-overview/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I came across <a title="Google Charts" href="http://code.google.com/apis/chart/">Google Charts</a> the other day and wanted to let people know what it&#8217;s all about. I found it incredibly easy to use to make a simple chart but a little more complicated to make something more complex.</p>
<p>The hello world example is given as follows:</p>
<table border="0">
<tbody>
<tr>
<td valign="top"><code></p>
<p>http://chart.apis.google.com/chart?cht=p3&#038;chd=t:60,40&#038;chs=250x100&#038;chl=Hello|World</code></p>
<p>(should be used within an &lt;img src=&#8221;" /&gt; tag)</td>
<td><img class="alignnone" title="Google Charts hello world example" src="http://chart.apis.google.com/chart?cht=p3&amp;chd=t:60,40&amp;chs=250x100&amp;chl=Hello|World" alt="" width="250" height="100" /></td>
</tr>
</tbody>
</table>
<p>To be clear, Google Charts does not use an API key system like Google Maps which takes a layer of complication away.</p>
<p>Let me break up the key parts of the url used to generate the above example&#8230;<br />
The first part http://chart.apis.google.com/chart? should always be the same followed by a combination of the following:</p>
<ul>
<li>cht = Type of chart you want to make (Common types are p3, lc, bhs, bvs)</li>
<li>chd = Chart data stream(s), usually in the form of t:item1,item2,item3</li>
<li>chs = Chart size (widthxheight)</li>
<li>ch<code>l = Chart Label separated by a | per dataset</code></li>
</ul>
<p>The next logical step is to look at bar charts because you can do all sorts with datasets/axis/labelling and colouring. See the following example (it&#8217;s not as complicated as it looks as I will show):</p>
<table border="0">
<tbody>
<tr>
<td><img src="http://chart.apis.google.com/chart?chs=300x120&amp;cht=bvg&amp;chg=0,10,1,5&amp;chds=0,25&amp;chxt=y&amp;chxl=0:||5|10|15|20|25&amp;chbh=60&amp;chd=t:10,24,6&amp;chm=t10,000000,0,0,11|t24,000000,0,1,11|t6,000000,0,2,11&amp;chl=14/08/08|15/08/08|18/08/08" alt="" /></td>
<td valign="top"><code>http://chart.apis.google.com/chart?chs=300x<br />
120&amp;cht=bvg&amp;chg=0,10,1,5&amp;chds=0,25&amp;chxt=y&amp;chxl=0:||5|10|15|20|25&amp;chbh=60&amp;chd=t:10,24,<br />
6&amp;chm=t10,000000,0,0,11|t24,000000,0,1,11|<br />
t6,000000,0,2,11&amp;chl=14/08/08|15/08/08<br />
|18/08/08</code></td>
</tr>
</tbody>
</table>
<p>This one is different in more ways that the obvious fact that it&#8217;s not a pie chart any more; it has labels on the axis, background lines, it&#8217;s scaled and there are labels per bar. The additional parts of the url are structured in the following manner:</p>
<ul>
<li>cht=bvg (it was p3 before meaning 3D pie chart, this one is a vertical bar instead)</li>
<li>chg = Chart grid accepts 4 arguments: <code>x step, y step, line length, blank length</code></li>
<li>chds = Data scale, arguments are minimum and maximum (this example 0-25)</li>
<li>chxt = Defines which axis have labels on (x, y, r)</li>
<li>chxl = Defines the labels for above in the form id:label1|label,id:label1|label2</li>
<li>chbh = Bar height (or width in this case as we are using a vertical chart)</li>
<li>chm  = Labels for each bar, arguments are id, colour, dataset id, dataset index</li>
</ul>
<p>This has been a very simple guide to understanding how to use Google Charts. There are Infinitely more resources available at: <a title="Google Charts" href="http://code.google.com/apis/chart/" target="_blank">http://code.google.com/apis/chart/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.sean-barton.co.uk/2008/08/google-charts-overview/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress Session Management</title>
		<link>http://www.sean-barton.co.uk/2008/07/wordpress-session-management/</link>
		<comments>http://www.sean-barton.co.uk/2008/07/wordpress-session-management/#comments</comments>
		<pubDate>Mon, 14 Jul 2008 20:41:00 +0000</pubDate>
		<dc:creator>Sean</dc:creator>
				<category><![CDATA[Statistics]]></category>
		<category><![CDATA[Plugin]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.sean-barton.co.uk/?p=12</guid>
		<description><![CDATA[I&#8217;ve been working on YourMembers for some time now and have started selling it on newmedias with Tim Nash and I wanted to get some useful stats on the current state of the website. Luckily the selling site is running on WordPress so I put together a simple plugin to give me some information on my last days visitors. Believe it or not I call it &#8216;session manager&#8217; and It&#8217;s freely available through this site and via the wordpress plugin directory (when I get around to uploading it). It gives you the following information: The number of visitors in the &#8230; <a class="continue_reading" href="http://www.sean-barton.co.uk/2008/07/wordpress-session-management/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been working on <a title="YourMembers Product Page" href="http://www.newmedias.co.uk/wordpress-membership/">YourMembers</a> for some time now and have started selling it on <a title="YourMembers Sales Site" href="http://www.newmedias.co.uk">newmedias</a> with <a title="Tims Blog and Homepage" href="http://www.timnash.co.uk/">Tim Nash</a> and I wanted to get some useful stats on the current state of the website. Luckily the selling site is running on WordPress so I put together a simple plugin to give me some information on my last days visitors.</p>
<p>Believe it or not I call it &#8216;session manager&#8217; and It&#8217;s freely available through this site and via the wordpress plugin directory (when I get around to uploading it). It gives you the following information:</p>
<ul>
<li>The number of visitors in the last day (configurable)</li>
<li>The number of pages each visitor looked at</li>
<li>Which they were</li>
<li>The times each page was visited</li>
</ul>
<p>That&#8217;s it!</p>
<p>I find that a lot of stats plugins give what I would call too much information (ie pretty graphs, information on screen resolution and things like which browser the client is using). Session Manager differs because it provides is a very light weight single table implementation giving 90% of the functionality for 10% of the overhead.</p>
<p>I have been using it on this site and newmedias for the last week or two and it has been instrumental in giving me enough stats data to satisfy that &#8216;whose looking at my site&#8217; itch. Exactly what I needed!</p>
<p><em>Any feedback would be greatly appreciated and if anyone fancies having a look at the code and trying to make something more of it then i would be keen to hear about it.</em> <em>I have written it in very clear coherent PHP that anyone could understand.</em></p>
<p><code>See the <a title="Session Manager Download Page" href="http://www.sean-barton.co.uk/wordpress-session-manager/" target="_self">Session Manager page</a> for the download link.</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.sean-barton.co.uk/2008/07/wordpress-session-management/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk
Page Caching using disk (enhanced)
Database Caching 7/26 queries in 0.059 seconds using disk
Object Caching 371/391 objects using disk

Served from: www.sean-barton.co.uk @ 2012-02-05 14:26:01 -->
