<?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>Yahoo! Flash (R) Blog &#187; YUI</title>
	<atom:link href="http://www.yswfblog.com/blog/index.php/category/yui/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.yswfblog.com/blog</link>
	<description>News and Articles on Yahoo! Flash Components and Libraries</description>
	<lastBuildDate>Sat, 19 Jun 2010 23:05:10 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>YUI Got a Little More Flashy Today!</title>
		<link>http://www.yswfblog.com/blog/2007/12/04/yui-got-a-little-more-flashy-today/</link>
		<comments>http://www.yswfblog.com/blog/2007/12/04/yui-got-a-little-more-flashy-today/#comments</comments>
		<pubDate>Wed, 05 Dec 2007 02:26:12 +0000</pubDate>
		<dc:creator>Josh Tynjala</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[YUI]]></category>

		<guid isPermaLink="false">http://www.yswfblog.com/blog/2007/12/04/yui-got-a-little-more-flashy-today/</guid>
		<description><![CDATA[Today, Yahoo! releases version 2.4.0 of the YUI Library. Why are we telling you about the release of a library primarily aimed at JavaScript developers on a Flash blog? Well, I (Josh) have been working with the YUI team for the past few months to help them introduce a new component that leverages the power [...]]]></description>
			<content:encoded><![CDATA[<p>Today, Yahoo! releases <a href="http://yuiblog.com/blog/2007/12/04/yuii-240/">version 2.4.0</a> of the <a href="http://developer.yahoo.com/yui/">YUI Library</a>. Why are we telling you about the release of a library primarily aimed at JavaScript developers on a Flash blog? Well, I (Josh) have been working with the YUI team for the past few months to help them introduce a new component that leverages the power of Flash Player. The experimental <a href="http://developer.yahoo.com/yui/charts/">YUI Charts widget</a> brings the <a href="http://developer.yahoo.com/flash/astra-flash/charts/">Yahoo! Astra Flash Charts</a> to a whole new audience.</p>
<p>One of the big goals for the project was to retain all the features of the Flash charts, but to present them in an API more familiar to JavaScript developers. For instance, YUI Charts use the <a href="http://developer.yahoo.com/yui/datasource/">DataSource utility</a> to load data from JavaScript or through XMLHTTPRequest. Developers experienced with the <a href="http://developer.yahoo.com/yui/datatable/">DataTable widget</a> already understand how to use DataSource, so can they easily translate their existing knowledge. The process of embedding the charts SWF in a webpage is fully encapsulated. To create a new LineChart, a developer only needs to create a new instance of the class. The constructor receives the ID of the HTML container in which to place the charts, a DataSource instance, and a set of initializing values for properties and styles.</p>
<pre style="overflow: auto">var lineChart = new YAHOO.widget.LineChart( containerID, dataSource, initializer );</pre>
<p>One challenge along the way was determining the best way to set styles on a chart. Ideally, I would have liked to use the browser CSS engines, but custom style names and potentially complex values that weren&#8217;t always supported forced me to find a different approach. In the end, I determined that the best method is to use the initializer value in the constructor to pass in an Object hash of style values.</p>
<pre style="overflow: auto">style:
{
    padding: 20,
    border:
    {
        color: 0x995566,
        size: 2
    },
    font:
    {
        name: "Verdana",
        color: 0x995566,
        size: 12
    }
}</pre>
<p>As you can see, it looks similar enough to CSS that anyone should be able to figure it out quickly, but it&#8217;s really just a standard JavaScript Object. Everything from axes, to grid lines, to the mouse over data tip can be styled with colors, fonts, and images. If you asked me about my favorite feature, I&#8217;d have to say that it&#8217;s the support for background images. The chart itself, the data tip, and item markers can all use custom images, loaded at runtime. Additionally, I&#8217;ve exposed tiling options that are similar to CSS, including the familiar <code>repeat</code>, <code>repeat-x</code>, <code>repeat-y</code>, <code>no-repeat</code>, and a new special option called <code>stretch</code> which will cause the background image size to scale to the full dimensions of the object in which it appears.</p>
<p>That&#8217;s just a quick taste of the new <a href="http://developer.yahoo.com/yui/charts/">YUI Charts widget</a>. Of course, head on over to the <a href="http://developer.yahoo.com/yui/">YUI page</a> on the <a href="http://developer.yahoo.com/">Yahoo! Developer Center</a> and read the <a href="http://yuiblog.com/blog/2007/12/04/yuii-240/">official announcement on the YUI Blog</a> to get more information. Now, if you&#8217;ll excuse me, I&#8217;ve got to get back to my next project. Oh Flex, how I&#8217;ve missed you&#8230;.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.yswfblog.com/blog/2007/12/04/yui-got-a-little-more-flashy-today/feed/</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
	</channel>
</rss>
