<?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>Visifire &#187; Creative Use of Visifire</title>
	<atom:link href="http://www.visifire.com/blog/category/creative/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.visifire.com/blog</link>
	<description>Fire up your imagination</description>
	<lastBuildDate>Tue, 27 Jul 2010 14:33:51 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Sparkline Charts using Visifire</title>
		<link>http://www.visifire.com/blog/2008/06/16/sparkline-charts-using-visifire/</link>
		<comments>http://www.visifire.com/blog/2008/06/16/sparkline-charts-using-visifire/#comments</comments>
		<pubDate>Mon, 16 Jun 2008 14:43:37 +0000</pubDate>
		<dc:creator>karthik</dc:creator>
				<category><![CDATA[Creative Use of Visifire]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[Tutorials and Samples]]></category>

		<guid isPermaLink="false">http://www.visifire.com/blog/2008/06/16/sparkline-charts-using-visifire/</guid>
		<description><![CDATA[In this blog I&#8217;ll show how to create Sparkline Charts using Line charts from Visifire. Let me start by showing a sample of the sparkline chart: The following XML is a bare bone XML required to create sparkline charts: &#60;vc:Chart xmlns:vc="clr-namespace:Visifire.Charts;assembly=Visifire.Charts" AnimationEnabled="False" Padding="1" BorderThickness="0" Watermark="False"&#62; &#60;vc:AxisX Enabled="False"/&#62; &#60;vc:AxisY Enabled="False" StartFromZero="False"/&#62; &#60;vc:DataSeries RenderAs="Line" LabelEnabled="False" MarkerEnabled="False" &#62; [...]]]></description>
			<content:encoded><![CDATA[<p>In this blog I&#8217;ll show how to create Sparkline Charts using Line charts from Visifire.</p>
<p>Let me start by showing a sample of the sparkline chart: <a href="http://visifire.com/blog/wp-content/post_images/SparklinechartsusingVisifire_DDFF/image.png"><img border="0" width="186" src="http://visifire.com/blog/wp-content/post_images/SparklinechartsusingVisifire_DDFF/image_thumb.png" alt="image" height="23" /></a></p>
<p>The following XML is a bare bone XML required to create sparkline charts:</p>
<pre>&lt;vc:Chart xmlns:vc="clr-namespace:Visifire.Charts;assembly=Visifire.Charts"
AnimationEnabled="False" Padding="1" BorderThickness="0" Watermark="False"&gt; 

  &lt;vc:AxisX Enabled="False"/&gt;
  &lt;vc:AxisY Enabled="False" StartFromZero="False"/&gt; 

  &lt;vc:DataSeries RenderAs="Line" LabelEnabled="False" MarkerEnabled="False" &gt;
    .
    .
    .
  &lt;/vc:DataSeries&gt; 

&lt;/vc:Chart&gt;</pre>
<p><a href="http://11011.net/software/vspaste"></a></p>
<p>Highlighting of the various points has to be done by selecting the color for the marker.</p>
<p>To highlight any point you have to enable the marker for the point and set the color. If color is not selected then default color will be applied. Also set the marker size as per requirement. Have a look at the example below, it shows how to highlight the start and end points.</p>
<pre>&lt;vc:Chart xmlns:vc="clr-namespace:Visifire.Charts;assembly=Visifire.Charts" Theme="Theme1"
          AnimationEnabled="False" Padding="1" BorderThickness="0" Watermark="False"&gt; 

  &lt;vc:AxisX Enabled="False"/&gt;
  &lt;vc:AxisY Enabled="False" StartFromZero="False"/&gt; 

  &lt;vc:DataSeries RenderAs="Line" LabelEnabled="False" MarkerEnabled="False"
                 MarkerSize="5" LineThickness="0.5" Color="Black"&gt;
    &lt;vc:DataPoint YValue="44.01" MarkerEnabled="True" Color="Blue" /&gt;
    .
    .
    .
    &lt;vc:DataPoint YValue="44.5" MarkerEnabled="True" Color="Blue" /&gt;
  &lt;/vc:DataSeries&gt; 

&lt;/vc:Chart&gt;</pre>
<p><a href="http://11011.net/software/vspaste"></a></p>
<p>Any point can be highlighted to show its importance</p>
<p>The screen shot below shows a HTML table containing Visifire sparkline charts, click on the image below to see silverlight example:</p>
<p> <a href="http://www.visifire.com/downloads/samples/embedded/sparkline_sample_16062008/demo/SparkLine.htm"><img border="0" width="367" src="http://visifire.com/blog/wp-content/post_images/SparklinechartsusingVisifire_DDFF/image1.png" alt="image" height="156" /></a></p>
<p>The code for this example can be downloaded from the <a href="http://www.visifire.com/downloads/samples/embedded/sparkline_sample_16062008/sparkline_sample_16062008.zip">here</a>.</p>
<p>Visifire sparkline charts support all events that are supported by line charts and hence can be easily used for creating drill down charts.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.visifire.com/blog/2008/06/16/sparkline-charts-using-visifire/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Real-time Charts using Visifire</title>
		<link>http://www.visifire.com/blog/2008/06/16/real-time-charts-using-visifire/</link>
		<comments>http://www.visifire.com/blog/2008/06/16/real-time-charts-using-visifire/#comments</comments>
		<pubDate>Mon, 16 Jun 2008 14:22:22 +0000</pubDate>
		<dc:creator>karthik</dc:creator>
				<category><![CDATA[Creative Use of Visifire]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[Tutorials and Samples]]></category>

		<guid isPermaLink="false">http://www.visifire.com/blog/2008/06/16/real-time-charts-using-visifire/</guid>
		<description><![CDATA[With the latest version of Visifire you can re-render the charts from JavaScript. I&#8217;ll show how to use this feature to create a real time chart. To create real-time charts from JavaScript follow these steps: Create a chart. Call a function to get updated XML. Call render function to display the chart. Repeat from step [...]]]></description>
			<content:encoded><![CDATA[<p>With the latest version of Visifire you can re-render the charts from JavaScript. I&#8217;ll show how to use this feature to create a real time chart.</p>
<p>To create real-time charts from JavaScript follow these steps:</p>
<ol>
<li>Create a chart.</li>
<li>Call a function to get updated XML.</li>
<li>Call render function to display the chart.</li>
<li>Repeat from step 2.</li>
</ol>
<p>It&#8217;s that simple, see the JavaScript code below:</p>
<p><a href="http://11011.net/software/vspaste"></a></p>
<pre>&lt;div id="Div1"&gt;
    &lt;script type="text/javascript"&gt;  

        //Create new chart
        var vChart1 = new Visifire('ClientBin/Visifire.xap',500,300); 

        //An array to store data
        var data = new Array(50); 

        //Initialize array with default values
        data = initializeData(data); 

        function update()
        {
            //Update array with latest data
            data = updateData(data); 

            //Generate chart XML using latest data
            var chartXML = updateChartXML(data); 

            //Set the XML for the chart
            vChart1.setDataXml(chartXML); 

            //Call render to display the chart
            vChart1.render("Div1"); 

            //Repeat after every second
            setTimeout(update,1000);
        } 

        //update the chart
        update(); 

    &lt;/script&gt;
&lt;/div&gt;</pre>
<p>The following image is the screen shot of real-time chart example. Click on the image see it in action:</p>
<p><a href="http://www.visifire.com/downloads/samples/embedded/realtime_sample_16062008/demo/realtime.htm"><img border="0" width="275" src="http://visifire.com/blog/wp-content/post_images/RealTimeChartsusingVisifire_A5EB/image_3.png" alt="image" height="125" /></a></p>
<p>You can download the source for this example <a href="http://www.visifire.com/downloads/samples/embedded/realtime_sample_16062008/realtime_sample_16062008.zip">here</a>.</p>
<p>The re-rendering process can also be used if the updated XML is stored in files, by using the <strong>chart.setDataUri</strong> function.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.visifire.com/blog/2008/06/16/real-time-charts-using-visifire/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>
