<?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>Web Dev News&#187; charting &#8211; News for Web Developers</title>
	<atom:link href="http://webdevnews.net/tag/charting/feed/" rel="self" type="application/rss+xml" />
	<link>http://webdevnews.net</link>
	<description>News For Web Developers</description>
	<lastBuildDate>Sat, 30 Jan 2010 15:25:04 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>FMCharts: Dynamic and Accessible Web Charts</title>
		<link>http://webdevnews.net/2009/07/fmcharts-dynamic-accessible-web-charts/</link>
		<comments>http://webdevnews.net/2009/07/fmcharts-dynamic-accessible-web-charts/#comments</comments>
		<pubDate>Wed, 22 Jul 2009 19:53:49 +0000</pubDate>
		<dc:creator>corrideat</dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[charting]]></category>

		<guid isPermaLink="false">http://webdevnews.net/?p=1128</guid>
		<description><![CDATA[I have been developing a script that shows bar graphs. While similar systems already exist, this one particularly is geared towards accessibility. I was inspired on CSS For Bar Graphs. However, a major improvement is the added flexibility that comes from implementing it in ECMAScript. Even with these changes, the prevailing first intention remains: that [...]<p>This is a post from <a href="http://webdevnews.net" title="News for Web Developers">Web Dev News</a>, a site brought to you by <a href="http://xavisys.com" title="For all your web development needs">Xavisys Web Development</a>.  <br/><br/><a href="http://webdevnews.net/2009/07/fmcharts-dynamic-accessible-web-charts/">FMCharts: Dynamic and Accessible Web Charts</a></p>
]]></description>
			<content:encoded><![CDATA[<!-- google_ad_section_start --><p>I have been developing a script that shows bar graphs. While similar<br />
systems already exist, this one particularly is geared towards<br />
accessibility. I was inspired on <a href="http://apples-to-oranges.com/blog/post/css-for-bar-graphs/?id=55">CSS For Bar Graphs</a>. However, a major improvement is the added flexibility that comes from implementing it in ECMAScript. Even with these changes, the prevailing<br />
first intention remains: that the graph is readable in plain HTML,<br />
which is why it is appropriate for an accessible design. It works by<br />
firstly creating the appropiate DOM tree of the graph, and then<br />
applying the corresponding styles.</p>
<p>The script is available at the address <a href="http://0xj.info/js/graphs.js">http://0xj.info/js/graphs.js</a>. Using it isn&#8217;t that complicated.</p>
<p>The first thing is to create an instance of the object.</p>
<pre class="brush: javascript">var x=_FMchart();</pre>
<p>Then a layer must be specified, either in string or in DOM node form.<br />
Accordingly:</p>
<pre class="brush: javascript">x.setLayer(&quot;LayerID&quot;);
x.setLayer(document.getElementById(&quot;LayerID&quot;));
</pre>
<p>After that, the data should be given:</p>
<pre class="brush: javascript">
x.draw(
{title:&quot;Cases of H1N1 Influenza A in South America by country (progessive)&quot;,
categories: [&quot;AR&quot;, [&quot;BO&quot;,&quot;999&quot;], &quot;BR&quot;, &quot;CL&quot;, &quot;CO&quot;, &quot;EC&quot;, &quot;PE&quot;, &quot;PY&quot;, &quot;SR&quot;, &quot;UY&quot;, &quot;VE&quot;],
proportional:true,
multidimentional:true,
dimensions:{w:&quot;600px&quot;},
data:{
&quot;20090626&quot;:[1587,47,452,5186,72,125,360,79,11,195,153],
&quot;20090705&quot;:[2485,319,812,7342,101,163,811,103,12,195,204],
&quot;20090709&quot;:[2677,544,977,8160,118,204,1135,114,12,195,222],
&quot;20090711&quot;:[2928,545,1027,9549,138,204,1580,114,12,520,231],
&quot;20090714&quot;:[3056,545,1027,9549,166,204,1753,114,12,520,234]
}
});
</pre>
<p>The properties are</p>
<dl>
<dt>title</dt>
<dd>title (caption)</dd>
<dt>categories</dt>
<dd>array containing the different elements described by the data. In<br />
the example, we are using the default colors for all the categories,<br />
with the exception of BO (using color #999999.)</dd>
<dt>proportional</dt>
<dd>if set to true, it replaces the absolute values by relative<br />
percentual values (eg 4 in a sample of 10 is represented as 40%.)</dd>
<dt>multidimentional</dt>
<dd>if set to true the length of the bars must be proportional among<br />
them (only available for a sample or more)</dd>
<dt>data</dt>
<dd>the data itself. Labels are needed to compare data from different samples.<br />
dimensions an object containing either one or both of the properties w (for<br />
width) and h (for height), with units</dd>
<dt>helper</dt>
<dd>the function which will apply the styles. For example, for a pie<br />
chart it will be x.helpers.pie</dd>
<dt>helperArgs</dt>
<dd>array containing the different arguments to pass to the helper.</dd>
</dl>
<p>For instance, the first value sets the radius (in pixels) to use for<br />
the pie chart when using helpers.pie</p>
<p>Pie charts require SVG or VML support. Bar charts are currently supported on the following browsers:</p>
<ul>
<li>MSIE 5.5, 6, 7 and 8 (for Windows)</li>
<li>Netscape 7 and 9</li>
<li>Arora 0.7.1</li>
<li>Mozilla Firefox 0.8, 1.0.8, 1.5.0.12, 2.0.0.20, 3.0 and 3.5</li>
<li>Konqueror 3.5 and 4.2</li>
<li>Galeon 2.0.6</li>
<li>Opera 9.26, 9.63, 9.64 and 10</li>
<li>Kazehakase 0.5.4</li>
<li>Epiphany 2.22 and 2.26.3</li>
<li>K-Meleon 1.1.4</li>
<li>Flock 2.0.3</li>
<li>Safari 3.2.1 and 4.0</li>
<li>Avant 11.7</li>
</ul>
<p>A demo available at <a href="http://youruseragent.info/download/chart.html">http://youruseragent.info/download/chart.html</a>. More information (in Spanish) <a href="http://blog.msl37.org/2009/07/12/52/">is also available</a>.</p>
<p><a href='http://webdevnews.net/wp-content/uploads/2009/07/graphs.js' title='Download the javascript file'>graphs.js</a></p>
<!-- google_ad_section_end --><p>This is a post from <a href="http://webdevnews.net" title="News for Web Developers">Web Dev News</a>, a site brought to you by <a href="http://xavisys.com" title="For all your web development needs">Xavisys Web Development</a>.  <br/><br/><a href="http://webdevnews.net/2009/07/fmcharts-dynamic-accessible-web-charts/">FMCharts: Dynamic and Accessible Web Charts</a></p>



Share and Enjoy:


	<a rel="nofollow"  href="http://twitter.com/home?status=FMCharts%3A%20Dynamic%20and%20Accessible%20Web%20Charts%20-%20http%3A%2F%2Fwebdevnews.net%2F2009%2F07%2Ffmcharts-dynamic-accessible-web-charts%2F" title="Twitter"><img src="http://webdevnews.net/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://delicious.com/post?url=http%3A%2F%2Fwebdevnews.net%2F2009%2F07%2Ffmcharts-dynamic-accessible-web-charts%2F&amp;title=FMCharts%3A%20Dynamic%20and%20Accessible%20Web%20Charts&amp;notes=I%20have%20been%20developing%20a%20script%20that%20shows%20bar%20graphs.%20While%20similar%0D%0Asystems%20already%20exist%2C%20this%20one%20particularly%20is%20geared%20towards%0D%0Aaccessibility.%20I%20was%20inspired%20on%20CSS%20For%20Bar%20Graphs.%20However%2C%20a%20major%20improvement%20is%20the%20added%20flexibility%20that%20come" title="del.icio.us"><img src="http://webdevnews.net/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwebdevnews.net%2F2009%2F07%2Ffmcharts-dynamic-accessible-web-charts%2F&amp;title=FMCharts%3A%20Dynamic%20and%20Accessible%20Web%20Charts" title="StumbleUpon"><img src="http://webdevnews.net/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwebdevnews.net%2F2009%2F07%2Ffmcharts-dynamic-accessible-web-charts%2F&amp;title=FMCharts%3A%20Dynamic%20and%20Accessible%20Web%20Charts&amp;bodytext=I%20have%20been%20developing%20a%20script%20that%20shows%20bar%20graphs.%20While%20similar%0D%0Asystems%20already%20exist%2C%20this%20one%20particularly%20is%20geared%20towards%0D%0Aaccessibility.%20I%20was%20inspired%20on%20CSS%20For%20Bar%20Graphs.%20However%2C%20a%20major%20improvement%20is%20the%20added%20flexibility%20that%20come" title="Digg"><img src="http://webdevnews.net/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://sphinn.com/index.php?c=post&amp;m=submit&amp;link=http%3A%2F%2Fwebdevnews.net%2F2009%2F07%2Ffmcharts-dynamic-accessible-web-charts%2F" title="Sphinn"><img src="http://webdevnews.net/wp-content/plugins/sociable/images/sphinn.png" title="Sphinn" alt="Sphinn" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwebdevnews.net%2F2009%2F07%2Ffmcharts-dynamic-accessible-web-charts%2F&amp;t=FMCharts%3A%20Dynamic%20and%20Accessible%20Web%20Charts" title="Facebook"><img src="http://webdevnews.net/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fwebdevnews.net%2F2009%2F07%2Ffmcharts-dynamic-accessible-web-charts%2F&amp;title=FMCharts%3A%20Dynamic%20and%20Accessible%20Web%20Charts&amp;annotation=I%20have%20been%20developing%20a%20script%20that%20shows%20bar%20graphs.%20While%20similar%0D%0Asystems%20already%20exist%2C%20this%20one%20particularly%20is%20geared%20towards%0D%0Aaccessibility.%20I%20was%20inspired%20on%20CSS%20For%20Bar%20Graphs.%20However%2C%20a%20major%20improvement%20is%20the%20added%20flexibility%20that%20come" title="Google Bookmarks"><img src="http://webdevnews.net/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a>


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://webdevnews.net/2009/07/fmcharts-dynamic-accessible-web-charts/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
