<?xml version="1.0" encoding="iso-8859-1"?><rss version="0.91">
    <channel>
        <title>phpguru.org - Richard Heyes' ramblings and code</title>
        <link>http://www.phpguru.org/</link>
        <description>
            Quality PHP and Javascript code, along with a mild smattering of humour. Also second home of the RGraph HTML5 canvas graph library.
        </description>

                    <item>
                <title>28th August STABLE RGraph release</title>
                <link>http://www.phpguru.org/article/490</link>
                <pubDate>Sat, 28 Aug 2010 05:00:01 +0100</pubDate>
                <description>
                    <![CDATA[<p class="firstLetter">Todays STABLE release includes the following updates:


<ul>
  <li>RGraph is moving towards DOM 2 event handler functions (ie the .addEventListener function). This will further improve interoperability with other code</li>
  <li>More custom events have been added</li>
  <li>The Progress bar has been split into the Hprogress and VProgress chart types</li>
  <li>Added the <i>contract</i> effect for tooltips (like expand, but in reverse)</li>
  <li>More MSIE9 compatibility work</li>
  <li>Noted suitability for Chrome extensions</li>
  <li>Noted the DOMContentLoaded event for performance purposes</li>
</ul>

<p>

For a more complete list of changes, see the docs/.CHANGELOG.txt file (the last stable release was the 31st July). Please tweet this.

<p>

Your continued support is appreciated!]]>
                </description>
            </item>
                    <item>
                <title>21st August RGraph release</title>
                <link>http://www.phpguru.org/article/489</link>
                <pubDate>Sat, 21 Aug 2010 20:31:33 +0100</pubDate>
                <description>
                    <![CDATA[<p class="firstLetter">As it starts getting warmer again, just in time for Winter (?), here's 
the latest RGraph changes (theres not too many this week):

<ul>
  <li>Added chart.units.ingraph to the HBar (for when your units are quite long)</li>
  <li>Fixed various bugs in circular charts with Chrome 6</li>
  <li>Added note to front page about suitability for Chrome extensions</li>
   <li>More fixes for MSIE 9</li>
</ul>

<p>You can get the latest beta and stable releases on the RGraph website: <a href="http://www.rgraph.net">http://www.rgraph.net</a>]]>
                </description>
            </item>
                    <item>
                <title>14th August RGraph release</title>
                <link>http://www.phpguru.org/article/488</link>
                <pubDate>Sat, 14 Aug 2010 20:28:03 +0100</pubDate>
                <description>
                    <![CDATA[<p class="firstLetter">Todays changes include:

<ul>
  <li>Added  chart.tooltips.coords.adjust to the Bar chart which allows you to adjust tooltip coordinates (when you translate for example)</li>
  <li>HBar shadow is now "unified", so you can have an upwards shadow with a large offset and it still looks OK</li>
  <li>The HBar "chart.labels.abovebar" labels are now left aligned if they would go off the end of the canvas</li>
  <li>Fixed a bug with the HBar chart.strokecolor - renamed to chart.strokestyle</li>
  <li>Added chart.tooltips.coords.adjust to the line chart (for when you translate for example)</li>
  <li>Tweaked filled/stepped line charts - stepped line charts show trailing line again</li>
  <li>Tickmarks, as well as a string, can now also be an array of different tickmark styles</li>
  <li>Added chart.ylabels.invert to the Line chart</li>
  <li>You can now specify in-graph labels like this: line.Set('chart.labels.ingraph', [6,'July', 3, 'November']); If you have a lot of empty spaces, this will help.</li>
  <li>Added type property to common objects</li>
  <li>Improved the appearance of the Odometer border</li>
  <li>Scatter chart tickmarks are no longer drawn when the ticks are boxplots</li>
  <li>Scatter chart boxplots are now usable when the X axis is in the center</li>
  <li>Added chart.xmin to the Scatter chart (upgrade cautiously)</li>
  <li>Chrome 6 appears to have an issue with canvas shadows. Other browsers are fine. A workaround has been added to the Line chart library, however it won't be a solution for all cases. In these cases, simply turn off shadow blurring.</li>
</ul>

<a target="_blank" href="http://www.rgraph.net" style="float: right; font-weight: bold">Go to the RGraph website &raquo;</a>]]>
                </description>
            </item>
                    <item>
                <title>7th August RGraph release</title>
                <link>http://www.phpguru.org/article/487</link>
                <pubDate>Sat, 07 Aug 2010 19:19:29 +0100</pubDate>
                <description>
                    <![CDATA[<p class="firstLetter">Now that summer is officially over it seems and it's just humid (which is so much more comfortable...), here's this weeks changes:

<ul>
  <li>Changed the Bar chart over to the DOM2 .addEventListener() function for tooltips</li>
  <li>The Bar chart can now have an arbitrary number of labels (<a href="http://www.rgraph.net/test.html" target="_blank">example</a>)</li>
  <li>Added chart.ylabels.inside to the Bar chart</li>
  <li>Bar chart labels can now be at any angle</li>
  <li>Changed the Bipolar default colors to just one - green</li>
  <li>Added more events:
    <ul>
      <li>onmodaldialog</li>
      <li>onresize</li>
      <li>onadjust</li>
      <li>onannotate</li>
    </ul>
  </li>
  <li>Multiple segments are now supported in the Horizontal Progress Bar</li>
  <li>Added the ability to configure the number of inner tickmarks for the Horizontal Progress Bar</li>
  <li>Line chart labels can now be at any angle</li>
  <li>Changed the Line chart to use the DOM2 .addEventListener() for tooltips</li>
  <li>Added isRGraph property to common objects</li>
  <li>Added chart.title.hpos to all graph libraries</li>
  <li>Added onmodaldialog event</li>
  <li>The Odometer outer shadow is now configurable</li>
  <li>The Odometer inner shadow is now configurable</li>
  <li>The Progress bar has been split into the Horizontal Progress bar and the Vertical Progress bar</li>
  <li>The Scatter chart labels can now be at any angle</li>
  <li>Added contract effect for tooltips. This is similar to expand but in reverse</li>
  <li>The Tradar background grid now matches the RScatter in terms of width etc</li>
  <li>Multiple segments are now supported in the VProgress</li>
  <li>Added the ability to configure the number of inner tickmarks with thee VProgress</li>
</ul>

<a target="_blank" href="http://www.rgraph.net" style="float: right; font-weight: bold">Go to the RGraph website &raquo;</a>]]>
                </description>
            </item>
                    <item>
                <title>31st July stable RGraph release</title>
                <link>http://www.phpguru.org/article/486</link>
                <pubDate>Sat, 31 Jul 2010 20:02:07 +0100</pubDate>
                <description>
                    <![CDATA[<p class="firstLetter">Today marks the start of more frequent, monthly, stable releases, which
will mean a quicker turn-around for new features. This release includes
the following notable updates:

<ul>
 <li>You can see a few screenshots of RGraph in MSIE9
   <a href="http://groups.google.com/group/rgraph/browse_thread/thread/2864b5809f8c814d#" target="_blank">here</a>.</li>
   <li>Added "snap" tooltip effect for graphs where the tooltips are triggered
   using the onmousemove event</li>
  <li>Added custom event support. There's just a small number of events at
   the moment, the most useful of which perhaps is the ontooltip event.
   This makes showing graphs in tooltips much easier than it previously
   was.</li>
</ul>

<p />

Further detail is available in the <a href="http://www.rgraph.net/docs/.CHANGELOG.txt">docs/.CHANGELOG.txt</a> file, and there
are a few things that you should be aware of in the <a href="http://www.rgraph.net/docs/.BC.txt">docs/.BC.txt</a> file.
Be sure to read BOTH of these files before upgrading.

<p />

Going forward, more custom events will be added, the Progress bar will
be split into two types (horizontal & vertical), further new "guage"
style graph types will be added, further graph types will be converted
to the DOM 2 .addEventListener() for tooltips, inverted Y axis on the
Line chart, "more than 5" Y label points for the Bar chart and more.

<p />

Your continued support is appreciated!]]>
                </description>
            </item>
                    <item>
                <title>24th July RGraph release</title>
                <link>http://www.phpguru.org/article/485</link>
                <pubDate>Sun, 25 Jul 2010 01:21:03 +0100</pubDate>
                <description>
                    <![CDATA[<p class="firstLetter">Not a lot of changes this month. Only two in fact:

<ul>
  <li>The line chart can now have labels at any angle. Other chart types to follow.</li>
  <li>The minify script now accepts mutiple arguments: <i>./minify file1 file2 file3 ...</i></li>
</ul>

<a target="_blank" href="http://www.rgraph.net" style="float: right; font-weight: bold">Go to the RGraph website &raquo;</a>]]>
                </description>
            </item>
                    <item>
                <title>A canvas "Please wait..."</title>
                <link>http://www.phpguru.org/article/484</link>
                <pubDate>Tue, 20 Jul 2010 02:06:24 +0100</pubDate>
                <description>
                    <![CDATA[<p class="firstLetter">Haven't you seen this before? If not you should stay in more. Or something like that. This, it seems, is a common "Please wait..."
component for Flash, and now here it is in a &lt;canvas&gt; version. It's quite simple to use, simply call the function:

<div style="text-align: center">
    <canvas id="myc" width="200" height="200" style="border: 1px dotted #aaa"></canvas>
</div>

<script>
    PleaseWait('myc');
</script>


<pre class="code">
&lt;script src="PleaseWait.js"&gt;&lt;/script&gt;

&lt;script&gt;
    PleaseWait(id);
&lt;/script&gt;</pre>

The library is here:

<ul>
    <li><a href="/javascript/PleaseWait.js"><b>PleaseWait.js</b></a></li>
</ul>

Bear in mind that you may need to clear the canvas before and/or after using it. You can do this by setting
the width or height to itself. Eg:

<pre class="code">document.getElementById("myCanvas").width = document.getElementById("myCanvas").width;</pre>]]>
                </description>
            </item>
            </channel>
</rss>