<?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>Zingers!</title>
	<atom:link href="http://www.zingchart.com/blog/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.zingchart.com/blog</link>
	<description>Pie Slices, Mystery Plots and Shameless Plugs</description>
	<lastBuildDate>Fri, 10 Feb 2012 20:28:30 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
		<item>
		<title>How-To: Theming for ZingChart</title>
		<link>http://www.zingchart.com/blog/2012/02/10/how-to-theming-for-zingchart/</link>
		<comments>http://www.zingchart.com/blog/2012/02/10/how-to-theming-for-zingchart/#comments</comments>
		<pubDate>Fri, 10 Feb 2012 20:28:30 +0000</pubDate>
		<dc:creator>nvan</dc:creator>
				<category><![CDATA[How-to's]]></category>
		<category><![CDATA[tips & tricks]]></category>

		<guid isPermaLink="false">http://www.zingchart.com/blog/?p=639</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<link href="http://www.zingchart.com/blog/include_files/css/prettyPhoto.css" media="screen" rel="stylesheet" type="text/css" charset="utf-8" />
	
	<script src="http://www.zingchart.com/blog/include_files/js/jquery-1.3.2.min.js" type="text/javascript" charset="utf-8"></script>
	
	<script src="http://www.zingchart.com/blog/include_files/js/jquery.prettyPhoto.js" type="text/javascript" charset="utf-8"></script>
	<script type="text/javascript" src="http://www.zingchart.com/blog/include_files/scripts/shCore.js"></script>
	<script type="text/javascript" src="http://www.zingchart.com/blog/include_files/scripts/shBrushJScript.js"></script>
    <script type="text/javascript" src="http://www.zingchart.com/blog/include_files/scripts/shBrushXml.js"></script>
    <script type="text/javascript" src="http://www.zingchart.com/blog/include_files/flash_scripts/zingchart-1.1.js"></script>

	<link type="text/css" rel="stylesheet" href="http://www.zingchart.com/blog/include_files/css/shCore.css"/>
    <link type="text/css" rel="stylesheet" href="http://www.zingchart.com/blog/include_files/css/shThemeZC.css"/>
    <style>
    #themes{margin:0 auto; width:540px; text-align:center;}
    </style>
    <script type="text/javascript">

    var theme;

    var barChart = {
            liburl      : 'http://www.zingchart.com/blog/include_files/flash_scripts/zingchart.swf',
            width       : 450,
            height      : 250,
            dataurl     : 'http://www.zingchart.com/blog/include_files/json/bar.txt',
            container   : 'barChart',
            defaultsurl : 'http://www.zingchart.com/blog/include_files/themes/' + theme + '.txt'
        };

    var pieChart = {
            liburl      : 'http://www.zingchart.com/blog/include_files/flash_scripts/zingchart.swf',
            width       : 450,
            height      : 250,
            dataurl     : 'http://www.zingchart.com/blog/include_files/json/pie.txt',
            container   : 'pieChart',
            defaultsurl : 'http://www.zingchart.com/blog/include_files/themes/' + theme + '.txt'
        };
    var areaChart = {
            liburl      : 'http://www.zingchart.com/blog/include_files/flash_scripts/zingchart.swf',
            width       : 450,
            height      : 250,
            dataurl     : 'http://www.zingchart.com/blog/include_files/json/area.txt',
            container   : 'areaChart',
            defaultsurl : 'http://www.zingchart.com/blog/include_files/themes/' + theme + '.txt'
        
    }

    var gaugeChart = {
        liburl          : 'http://www.zingchart.com/blog/include_files/flash_scripts/zingchart.swf',
            width       : 450,
            height      : 250,
            dataurl     : 'http://www.zingchart.com/blog/include_files/json/gauge.txt',
            container   : 'gaugeChart',
            defaultsurl : 'http://www.zingchart.com/blog/include_files/themes/' + theme + '.txt'
    }


    window.onload = function() {

        zingchart.render(barChart);
        zingchart.render(pieChart);
        zingchart.render(areaChart);
        zingchart.render(gaugeChart);
    };

    function changeTheme(theme){
        
        theme = theme.value;
        var downloadLink = "http://www.zingchart.com/blog/include_files/themes/" + theme + ".zip";
        document.getElementById("download").setAttribute("href", downloadLink);

        barChart = {
            liburl      : 'http://www.zingchart.com/blog/include_files/flash_scripts/zingchart.swf',
            width       : 450,
            height      : 250,
            dataurl     : 'http://www.zingchart.com/blog/include_files/json/bar.txt',
            container   : 'barChart',
            defaultsurl : 'http://www.zingchart.com/blog/include_files/themes/' + theme + '.txt'
        };

        pieChart = {
            liburl      : 'http://www.zingchart.com/blog/include_files/flash_scripts/zingchart.swf',
            width       : 450,
            height      : 250,
            dataurl     : 'http://www.zingchart.com/blog/include_files/json/pie.txt',
            container   : 'pieChart',
            defaultsurl : 'http://www.zingchart.com/blog/include_files/themes/' + theme + '.txt'
        };

        areaChart = {
            liburl      : 'http://www.zingchart.com/blog/include_files/flash_scripts/zingchart.swf',
            width       : 450,
            height      : 250,
            dataurl     : 'http://www.zingchart.com/blog/include_files/json/area.txt',
            container   : 'areaChart',
            defaultsurl : 'http://www.zingchart.com/blog/include_files/themes/' + theme + '.txt'
        };

        gaugeChart = {
            liburl      : 'http://www.zingchart.com/blog/include_files/flash_scripts/zingchart.swf',
            width       : 450,
            height      : 250,
            dataurl     : 'http://www.zingchart.com/blog/include_files/json/gauge.txt',
            container   : 'gaugeChart',
            defaultsurl : 'http://www.zingchart.com/blog/include_files/themes/' + theme + '.txt'
        };

        loadCharts(theme);

    }

    function loadCharts(theme){
        zingchart.render(barChart);
        zingchart.render(pieChart);
        zingchart.render(areaChart);
        zingchart.render(gaugeChart);
    }
</script>

	
	<script type="text/javascript" charset="utf-8">
	
	SyntaxHighlighter.all();
	
	$(document).ready(function(){
	
	$("a[rel^='prettyPhoto']").prettyPhoto({
	
	show_title: false
	
	}); 
	
	}); 	
	
	</script>

  <div id="wrapper">

    <div id="LessonContent">

      <div class="LessonHeader">

        <h1 class="LessonTitle">Creating Themes</h1>

      </div>

      	<div class="summary">

		<p>Themes can be useful if you have a bunch of charts that need to be consistent. ZingChart gives you the ability to design your own themes by creating a JSON (JavaScript Object Notation) file where you store all your theme properties. By creating a ZingChart theme, you will be able to have your chart data in one file and theme properties in the other, as well as apply your these files to any chart. In this tutorial, I will be talking about the basics of ZingChart theming. </p>

	</div>

      	<div id="step_1" class="lessonStep top">

	    <h2 class="StepTitle">Step 1. Create Chart and Chart Data File</h2>

<p>The first thing you will want to do is create your chart and chart data. I am assuming you already know how to do this, but if you do not, you can learn more <a href="http://www.zingchart.com/learn/" target="_blank">here</a>.</p>

<p>Below is what my folder structure looks like after creating the data file and the my chart HTML file. I have named my JSON data file <code>data.txt</code>.</p>
		<div class="image">

<img src="http://www.zingchart.com/blog/include_files/images/Creating_Themes/media_1328112915402.png" width="179" height="73" alt="" />

</div> 

<p>The bar is an easy chart to manipulate, so we will start with that graph type for demonstration purposes. This is what my <code>data.txt</code> file looks like:</p>


<pre class="brush: js;">
{
    "type"  : "bar",
    "title" : {
        "text" : "Bar Demonstration"
    },
    "legend" : {
            "header" : {
            "text" : "Legend"
            }
    },
    "scale-x"  : {
        "text" : "Scale-x"
    },
    "scale-y"  : {
        "text" : "Scale-y"
    },
    "series" : [
    {    
    "values" : [28.2, 1, 3.9, 0.6, 0.25, 0.65]
    },
    {    
    "values" : [20, 3, 24, 13, 25, 3]
    },
    {    
    "values" : [1, 6, 3, 12, 18, 23]
    },
    {    
    "values" : [22, 29, 2, 23, 14, 4]
    },
    {    
    "values" : [18.2, 1, 2.9, 1.6, 3.25, 5.65]
    }
    ]
}
</pre>


<p>As you can see from my example, I have set my <code>data.txt</code> file to output as a bar graph by setting <code>"type" : "bar"</code>, and the title of my chart will be Bar Demonstration by setting <code>"text" : "Bar Demonstration"</code> in my <code>title</code> object. The chart <code>legend</code> will be visible and I have set 5 different <code>series</code> of <code>values</code>. Since you have not set any design properties yet, your chart will automatically go to ZingChart's default theme. Your chart should look like the chart shown below.</p>

<div class="image">

<img src="http://www.zingchart.com/blog/include_files/images/Creating_Themes/default-theme.png" width="540" alt="" />

</div> 

	</div>

	<div class="clear"></div>
	<div id="step_2" class="lessonStep top">

	    <h2 class="StepTitle">Step 2. Create Theme JSON File</h2>

<p>Let's create a theme called Candy and name the file <code>candy.txt</code>. Leave the file blank for now because there is a very important step that you must do before creating your theme. Below is a what my folder structure now looks like.</p>

		<div class="image">

<img src="http://www.zingchart.com/blog/include_files/images/theme-directory.png" width="179" height="102" alt="" />

</div> 

	</div>

	<div class="clear"></div>
	<div id="step_3" class="lessonStep top">

	    <h2 class="StepTitle">Step 3. Link Theme JSON File to Chart File</h2>

		 <p>The next step is to open up your chart file (my chart file is called <code>themedemo.html</code>) in your text editor. Find the JavaScript function that has your chart configuration settings in it. Inside <code>zingchart.render()</code>, you will want to add the highlighted line:</p>


<p><pre class="brush: js; highlight: [7]">
zingchart.render({
        output      : 'canvas', 
        width       : 740,
        height      : 420,
        dataurl     : 'data.txt',
        id          : 'themeChart',
        defaultsurl : 'candy.txt'
    });
</pre>

This tells ZingChart that you want to override the default theme with your own. You are now ready to start building your own theme!</p>

	</div>

	<div class="clear"></div>
	<div id="step_4" class="lessonStep top">

	    <h2 class="StepTitle">Step 4. Create your Theme Palette</h2>

		

</div> <p>JSON files always start with { and end with }. In these parameters, you will set any property that you wish to be different from the default theme. You will be creating a style for anything that has a <code>color</code>, <code>background-image</code>, <code>border</code>, <code>font</code>, etc. </p>


<p>A ZingChart theme file contains a <code>palette</code> object. In the palette object, you will have your theme colors for certain graphs. Our next step is to add the following content to our Candy theme file:</p>


<pre class="brush: js;">
{
	"palette" : {}
}</pre>


<p>Once you add your palette object, you will have to define each kind of graph you want to apply your theme to. Since we are theming a bar, we will need to add a bar object. The bar object has two options, vertical or horizontal bar. Let's stick with the traditional vertical bar. Inside of the graph type object, you will need to add your color scheme.</p>


<pre class="brush: js;">
{
    "palette"  : {
        "vbar" : [
            ["#ffffff", "#c71631", "#c71631", "#e03457"],
            ["#ffffff", "#47cc27", "#47cc27", "#88dc68"],
            ["#ffffff", "#f88911", "#f88911", "#fa9f5c"],
            ["#ffffff", "#f2ef85", "#f2ef85", "#fdef31"],
            ["#ffffff", "#1682a9", "#1682a9", "#30a3d8"]
        ]
    }
}</pre>


<p>The number of color palettes under your graph type will dictate how many plots you are theming. The first set of values will be for the first set of plots, the second set will be the for the second, so on and so forth. Now what does this do? Let's take a look at the first set of colors...</p>

<div class="lessonStep top">
<div class="image">

<a href="http://www.zingchart.com/blog/include_files/images/Creating_Themes/color-palette_lg.png" rel="prettyPhoto" class="image" target="_blank"><img src="http://www.zingchart.com/blog/include_files/images/Creating_Themes/palette_colors.png" width="540" height="328" alt="Create your Theme Palette" /></a>

<div class="caption"><a href="http://www.zingchart.com/blog/include_files/images/Creating_Themes/palette_colors.png" rel="prettyPhoto" target="_blank">Zoom</a></div>
</div>

<p>The demonstration above describes the vertical bar graph type.</p>

	</div>

	<div class="clear"></div>
	<div id="step_5" class="lessonStep top">

	    <h2 class="StepTitle">Step 5. Add Additional Graph Types</h2>

		 <p>You can add as many graph types as you like. Make sure you style each graph type you want to use with this theme or the chart will apply the default style.</p>


<p>As you may have noticed, this only sets the color for the plot values. You're probably asking, where do you put the rest of the theme?</p>

	</div>

	<div class="clear"></div>
	<div id="step_6" class="lessonStep top">

	    <h2 class="StepTitle">Step 6. Add Graph Object</h2>

		 <p>Now that you are satisfied with your color scheme, it is time to add all the graph properties. This includes the graph <code>title</code>, <code>legend</code>, <code>scale-x</code>, <code>scale-y</code>, etc. Anything that you want included in your theme will go in this object:</p>


<pre class="brush: js;">&quot;graph&quot; : {}</pre>


<p>This object belongs after the palette object. Make sure you do not forget to put a comma after the palette object or your theme will break. Your theme file should now look like this:</p>


<pre class="brush: js;">
{
    "palette" : {
        "vbar" : [
            ["#ffffff", "#c71631", "#c71631", "#e03457"],
            ["#ffffff", "#47cc27", "#47cc27", "#88dc68"],
            ["#ffffff", "#f88911", "#f88911", "#fa9f5c"],
            ["#ffffff", "#f2ef85", "#f2ef85", "#fdef31"],
            ["#ffffff", "#1682a9", "#1682a9", "#30a3d8"]
        ]
    },
 
    "graph" : {
     
    }
}</pre>


<p>If you test out your Candy theme, it should look exactly the same as it did before you did this step. This is because you have not set any graph properties yet.</p>

	</div>

	<div class="clear"></div>
	<div id="step_7" class="lessonStep top">

	    <h2 class="StepTitle">Step 7. Add Graph Properties</h2>

<p>Let's start with the basics. I want to make my chart background have a light gradient and my title bar be a gradient that matches my set color palette. To do this, I will pick the two colors I want to use for each object and I will add these properties to my graph object. Since the title is it's own object, we will add a <code>title</code> object to our graph.</p>


<pre class="brush: js;">
"graph" : {
    "background-color" : "#ffffff #ececec",
    "title" : {
        "background-color" : "#e03457 #c71631"
    }
}
</pre>

<p>Make sense?</p>


<p>Let's fast forward a little bit and add some more graph properties...</p>


<pre class="brush: js;">
"graph" : {
    "background-color" : "#ffffff #ececec",
    "title" : {
        "background-color" : "#e03457 #c71631"
    },
    "chart" : {
        "background-color" : "#ffffff"
    },
    "legend" : {
        "border-radius" : "5",
        "border-color" : "#cccccc",
        "header" : {
            "background-color" : "#d88684 #e64c6d",
            "border-color" : "#cccccc",
            "border-radius-top-left" : "5",
            "border-radius-top-right" : "5"
        },
        "item" : {
                "border-color" : "#cccccc",
                "font-color" : "#282828",
                "marker-style" : "circle"
        }
    },
    "scale-x" : {
        "font-color" : "#c71631",
        "item" : {
            "font-color" : "#515151"
        },
        "line-color" : "#cccccc",
        "tick" : {
            "line-color" : "#c71631"
        }
    },
    "scale-y" : {
        "font-color" : "#c71631",
        "item" : {
            "font-color" : "#515151"
        },
        "line-color" : "#cccccc",
        "tick" : {
            "line-color" : "#c71631"
        },

    }
}
</pre>

<p>Your Candy theme should now look like this:</p>
<div class="image">

<img src="http://www.zingchart.com/blog/include_files/images/Creating_Themes/graph-properties.png" width="540" height="317" alt="" />

</div>

	</div>

	<div class="clear"></div>
	<div id="step_8" class="lessonStep top">

	    <h2 class="StepTitle">Step 8. Add Graph Specific Properties</h2>

		 <p>Now that you have the graph properties to your liking, it is time to add graph specific properties. What this means, is that each graph type has a set of specific properties that you can add to your theme. For example, if you wanted your bar graph to animate, you would call this in the graph type property.</p>


<p>After the graph object, you will call your graph type object which will look like this (assuming you are still theming the vertical bar):</p>


<pre class="brush: js;">"vbar" : {}</pre>


<p>Now that you have set the vbar object, you will want to set your properties for the vertical bar inside that object. Since I want the plots to animate, I will set a plot object with my properties. <code>Animate</code> will be set to <code>true</code>, to turn on animation, and <code>effect</code> will be effect #2. Animation effects are preset so you can choose between a number of different effects depending on what kind of graph it is.</p>

<p>You can see how I added this object below:</p>

<pre class="brush: js; highlight: [58, 59, 60, 61, 62, 63]">
{
"palette" : {
    "vbar" : [
        ["#ffffff", "#c71631", "#c71631", "#e03457"],
        ["#ffffff", "#47cc27", "#47cc27", "#88dc68"],
        ["#ffffff", "#f88911", "#f88911", "#fa9f5c"],
        ["#ffffff", "#f2ef85", "#f2ef85", "#fdef31"],
        ["#ffffff", "#1682a9", "#1682a9", "#30a3d8"]
         ]
},

"graph" : {
    "background-color" : "#ffffff #ececec",
    "title" : {
        "background-color" : "#e03457 #c71631"
    },
    "chart" : {
        "background-color" : "#ffffff"
    },
    "legend" : {
        "border-radius" : "5",
        "border-color" : "#cccccc",
        "header" : {
            "background-color" : "#d88684 #e64c6d",
            "border-color" : "#cccccc",
            "border-radius-top-left" : "5",
            "border-radius-top-right" : "5"
        },
        "item" : {
                "border-color" : "#cccccc",
                "font-color" : "#282828",
                "marker-style" : "circle"
        }
    },
    "scale-x" : {
        "font-color" : "#c71631",
        "item" : {
            "font-color" : "#515151"
        },
        "line-color" : "#cccccc",
        "tick" : {
            "line-color" : "#c71631"
        }
    },
    "scale-y" : {
        "font-color" : "#c71631",
        "item" : {
            "font-color" : "#515151"
        },
        "line-color" : "#cccccc",
        "tick" : {
            "line-color" : "#c71631"
        },

    }
},

"vbar" : {
    "plot" : {
        "animate" : true,
        "effect" : 2
    }
}

}


</pre>




	</div>

	<div class="clear"></div>
	<div id="step_9" class="lessonStep top">

	    <h2 class="StepTitle">Step 9. Add More Graph Types and Test</h2>

		<div class="image">

<img src="http://www.zingchart.com/blog/include_files/images/Creating_Themes/pie.png" width="540" height="318" alt="" />

</div> <p>Now that you have your Candy theme set up, try adding another graph type and see what you can do with it. Apply the theme to another chart you already have set up or create an entirely new chart to play with.</p>

<a href="http://www.zingchart.com/blog/include_files/themedemo.html" target="_blank">View Demo</a> | <a href="http://www.zingchart.com/blog/include_files/theming_source_files.zip" target="_blank">Source Files</a>

<p>You are now ready to create your own themes! Take a look at the themes I have created for you all to use and enjoy.</p>

<div id="themes">
    <div id="themeMenu">
    <p>Select a Theme: 
        <select id="themeSelect" onchange="changeTheme(this)">
        <option>Select a Theme...</option>
        <option>espresso</option>
        <option>nautical</option>
        <option>candy</option>
        <option>carbon</option>
        <option>wood</option>
        <option>sunny</option>
        <option>minimalist</option>
        </select> <a id="download" href="#" target="_blank">Download Theme</a></p>

    </div><!--/#themeMenu-->

    <div id="barChart"></div><!--/#barChart--><br/>

    <div id="pieChart"></div><!--/#barChart--><br/>

    <div id="areaChart"></div><!--/#barChart--><br/>

    <div id="gaugeChart"></div><!--/#barChart-->

</div>



	</div>

	<div class="clear"></div>


    </div>

  </div>



]]></content:encoded>
			<wfw:commentRss>http://www.zingchart.com/blog/2012/02/10/how-to-theming-for-zingchart/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Spreading Holiday Cheer &#8211; 2011 HTML5 Advent(ure) Calendars</title>
		<link>http://www.zingchart.com/blog/2011/12/15/spreading-holiday-cheer-2011-html5-adventure-calendars/</link>
		<comments>http://www.zingchart.com/blog/2011/12/15/spreading-holiday-cheer-2011-html5-adventure-calendars/#comments</comments>
		<pubDate>Fri, 16 Dec 2011 00:35:32 +0000</pubDate>
		<dc:creator>abegin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.zingchart.com/blog/?p=614</guid>
		<description><![CDATA[Last year, we had a ton of fun developing our HTML5 Advent(ure) Calendar. It gave us a chance to review, demo, play and test out some of the best HTML5 projects and games on the web. We also met some great people in the process. If you never had the chance to check out the [...]]]></description>
			<content:encoded><![CDATA[<p>Last year, we had a ton of fun developing our <a href="http://html5advent.com">HTML5 Advent(ure) Calendar</a>. It gave us a chance to review, demo, play and test out some of the best HTML5 projects and games on the web. We also met some great people in the process.</p>
<p>If you never had the chance to check out the work, here&#8217;s a peek:</p>
<p>&nbsp;</p>
<p style="text-align: center;"><a href="http://html5advent.com"><img class="aligncenter  wp-image-623" title="html5advent-calendar-zingchart" src="http://www.zingchart.com/blog/wp-content/uploads/2011/12/html5advent-calendar-zingchart1-1024x746.png" alt="HTML5 Advent(ure) Calendar" width="491" height="358" /></a></p>
<p>The calendar got some great feedback and even inquiries from folks who wanted to make calendars of their own, so this yea we released the <a href="https://github.com/tpowell/jsadvent">source code</a>.  It&#8217;s free to use however you wish, but please link back to us for attribution.</p>
<p>We wanted to share some of the cool calendars that people have created using the source that showcase art, gift ideas, and even pets up for adoption. Great calendars to spread the holiday cheer! check them out:</p>
<h3 style="text-align: center;"><a href="http://batterseaadvent.org.uk/">Battersea Dogs &amp; Cats Home Advent Calendar:</a></h3>
<p>&nbsp;</p>
<p style="text-align: center;"><a href="http://batterseaadvent.org.uk/"><img class="aligncenter  wp-image-618" title="advent-calendar-battersea" src="http://www.zingchart.com/blog/wp-content/uploads/2011/12/advent-calendar-battersea1-1024x712.png" alt="Battersea Dogs &amp; Cats Home - A pet per day!" width="491" height="342" /></a></p>
<p style="text-align: center;">
<h3 style="text-align: center;"><a href="http://www.adventnoir.co.uk/">Advent Noir &#8211; 24 Classic Black &amp; White Winter Memories</a></h3>
<p style="text-align: center;">HTML5 Snow, too!</p>
<p style="text-align: center;"><a href="http://www.adventnoir.co.uk/"><img class="aligncenter  wp-image-626" style="border-style: initial; border-color: initial;" title="advent-noir-calendar" src="http://www.zingchart.com/blog/wp-content/uploads/2011/12/advent-noir-calendar1-1024x755.png" alt="Advent Noir - 24 Classic Black &amp; White Memories" width="491" height="362" /></a></p>
<p style="text-align: center;">
<h3 style="text-align: center;">
<a href="http://schlagerfiasko.nu/jul/calendar.html">Schlagerfiasko’s 24 days of Christmas</a></h3>
<p style="text-align: center;"><a href="http://schlagerfiasko.nu/jul/calendar.html"><img class="aligncenter  wp-image-624" title="schlagerfiasko-music-advent-calendar" src="http://www.zingchart.com/blog/wp-content/uploads/2011/12/schlagerfiasko-music-advent-calendar-1024x733.png" alt="Schlagerfiasko's 24 days of Christmas" width="491" height="352" /></a></p>
<p style="text-align: center;">
<h3 style="text-align: center;"><a href="http://www.androgon.com/?advent">Der Androgon Adventskalender 2011</a></h3>
<p style="text-align: center;"><a href="http://www.androgon.com/?advent"><img class="aligncenter  wp-image-628" title="deradrogon-adventskalender-2011" src="http://www.zingchart.com/blog/wp-content/uploads/2011/12/deradrogon-adventskalender-2011-1024x755.png" alt="Der Androgon Adventskalender 2011" width="491" height="362" /></a></p>
<p style="text-align: center;">
<p style="text-align: left;">Great job all! We also saw a neat <a href="http://thewebrocks.com/calendar/">Mozilla Developers Network Advent</a> this year by <a href="http://twitter.com/codepo8">Chris Heilmann</a> and team. Have you seen any other HTML5 advent calendars in the wild?  Please share &#8211; we&#8217;d love to see and share them!</p>
<p style="text-align: left;">Happy Holidays from ZingChart!</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.zingchart.com/blog/2011/12/15/spreading-holiday-cheer-2011-html5-adventure-calendars/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Tokens in Tooltips, Value-Boxes and more</title>
		<link>http://www.zingchart.com/blog/2011/11/16/tokens-in-tooltips-value-boxes-and-more/</link>
		<comments>http://www.zingchart.com/blog/2011/11/16/tokens-in-tooltips-value-boxes-and-more/#comments</comments>
		<pubDate>Thu, 17 Nov 2011 02:29:42 +0000</pubDate>
		<dc:creator>abegin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.zingchart.com/blog/?p=563</guid>
		<description><![CDATA[Get your tokens here! You probably already have seen our %v, %k and %t tokens for calling values, keys and series text into tooltips. Well, we&#8217;ve added LOTS more tokens/variables that you can use in tooltips, valueboxes, query strings, rules, and more. See a few of them in action here (photo links to live demo): [...]]]></description>
			<content:encoded><![CDATA[<p>Get your tokens here! You probably already have seen our %v, %k and %t tokens for calling values, keys and series text into tooltips. Well, we&#8217;ve added LOTS more tokens/variables that you can use in <a href="http://www.zingchart.com/supportdemoteam/4dd143cf95a02/canvas/0.110920">tooltips</a>, valueboxes, <a href="http://www.zingchart.com/labs/html5/custom_data_variables.php">query strings</a>, rules, and more.</p>
<p>See a few of them in action here (photo links to live demo):</p>
<div class="mceTemp mceIEcenter">
<dl class="wp-caption aligncenter" style="width: 527px;">
<dt class="wp-caption-dt"><a href="http://www.zingchart.com/supportdemoteam/4ec45caa75f11/svg"><img title="Tooltip and value-box token demo" src="http://www.zingchart.com/images/zingchart-pie-tokens-variables.png" alt="pie chart using tokens for tooltips and value-box" width="517" height="407" /></a></dt>
</dl>
</div>
<p>Here&#8217;s a laundry list of tokens for you to try out in your own posts:</p>
<table>
<tbody>
<tr>
<td>Token</td>
<td>Type</td>
<td>Long-Format</td>
<td>Description</td>
</tr>
<tr>
<td>%c</td>
<td>Scale</td>
<td>%scale-position</td>
<td>Scale item position</td>
</tr>
<tr>
<td>%d</td>
<td>Node</td>
<td>%plot-description</td>
<td>Plot description</td>
</tr>
<tr>
<td>%data-variable</td>
<td>Node</td>
<td></td>
<td>Custom data</td>
</tr>
<tr>
<td>%g</td>
<td>Node</td>
<td>%node-goal-value</td>
<td>Node goal Value</td>
</tr>
<tr>
<td>%i</td>
<td>Scale</td>
<td>%scale-index</td>
<td>Node Index</td>
</tr>
<tr>
<td>%k</td>
<td>Scale</td>
<td>%scale-key-value</td>
<td>Scale-key value</td>
</tr>
<tr>
<td>%k0</td>
<td>Node</td>
<td></td>
<td>Scale-key Part Value</td>
</tr>
<tr>
<td>%kl</td>
<td>Scale</td>
<td>%scale-key-label</td>
<td>Scale-key label</td>
</tr>
<tr>
<td>%kt</td>
<td>Sacle</td>
<td>%scale-key-text</td>
<td>Scale-key text</td>
</tr>
<tr>
<td>%kt0</td>
<td>Node</td>
<td></td>
<td>Scale-key part of text</td>
</tr>
<tr>
<td>%kv</td>
<td>Node</td>
<td>%scale-key-value</td>
<td>Scale-key value</td>
</tr>
<tr>
<td>%kv0</td>
<td>Node</td>
<td></td>
<td>Scale-key part of value</td>
</tr>
<tr>
<td>%l</td>
<td>Scale</td>
<td>%scale-label</td>
<td>Scale-key label</td>
</tr>
<tr>
<td>%N</td>
<td>Node</td>
<td>%node-count</td>
<td>Nº of nodes</td>
</tr>
<tr>
<td>%nmv</td>
<td>Node</td>
<td>%node-min-value</td>
<td>Node minimum value</td>
</tr>
<tr>
<td>%npv</td>
<td>Node</td>
<td>%node-percent-value</td>
<td>Node percent value</td>
</tr>
<tr>
<td>%nxv</td>
<td>Node</td>
<td>%node-max-value</td>
<td>Node maximum value</td>
</tr>
<tr>
<td>%p</td>
<td>Node</td>
<td>%plot-index</td>
<td>Plot index</td>
</tr>
<tr>
<td>%P</td>
<td>Node</td>
<td>%plot-count</td>
<td>Nº of plots</td>
</tr>
<tr>
<td>%pavg</td>
<td>Node</td>
<td>%plot-average</td>
<td>Plot average value</td>
</tr>
<tr>
<td>%pmi</td>
<td>Node</td>
<td>%plot-min-index</td>
<td>Plot minimum value</td>
</tr>
<tr>
<td>%pmv</td>
<td>Node</td>
<td>%plot-min-value</td>
<td>Plot or node min value</td>
</tr>
<tr>
<td>%pper</td>
<td>Node</td>
<td>%plot-percent</td>
<td>Plot percent</td>
</tr>
<tr>
<td>%psum</td>
<td>Node</td>
<td>%plot-sum</td>
<td>Sum of all values of the plot</td>
</tr>
<tr>
<td>%pv</td>
<td>Node</td>
<td>%plot-value</td>
<td>All values of your plot</td>
</tr>
<tr>
<td>%pxi</td>
<td>Node</td>
<td>%plot-max-index</td>
<td>Plot maximum index</td>
</tr>
<tr>
<td>%pxv</td>
<td>Node</td>
<td>%plot-max-value</td>
<td>Plot maximum value</td>
</tr>
<tr>
<td>%sum</td>
<td>Node</td>
<td></td>
<td>The total of the stack of that node</td>
</tr>
<tr>
<td>%t</td>
<td>Node</td>
<td>%plot-text</td>
<td>Text of that plot</td>
</tr>
<tr>
<td>%t0</td>
<td>Node</td>
<td></td>
<td>Part of the plot text</td>
</tr>
<tr>
<td>%total</td>
<td>Node</td>
<td></td>
<td>The total of the stack</td>
</tr>
<tr>
<td>%v</td>
<td>Scale</td>
<td>%scale-value</td>
<td>Value</td>
</tr>
<tr>
<td>%linecolor</td>
<td>Node</td>
<td></td>
<td>Line-color of the plot</td>
</tr>
<tr>
<td>%backgroundcolor</td>
<td>Node</td>
<td></td>
<td>Background color of the plot.</td>
</tr>
</tbody>
</table>
<p>&nbsp;</p>
<p>These tokens can be placed in &#8220;text&#8221; attributes throughout various objects like series, value-box, crosshair-x value-label, and more. Here&#8217;s an example of the JSON from the above pie chart example, where we decided to call the series text, value, and node percent value for each slice:</p>
<pre>"tooltip":{
    "text":"%t: $%v (%npv%)",
    "background-color":"#fff",
    "border-color":"#333",
    "border-width":"1px",
    "border-radius":"8px",
    "font-color":"#333"
 },</pre>
<p>Give these a try and email us with any questions support@zingchart.com for chart help, sales@zingchart.com for licensing inquiries!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.zingchart.com/blog/2011/11/16/tokens-in-tooltips-value-boxes-and-more/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ZingChart &#8211; Now Rendering Charts in HTML5 Canvas, SVG, VML and Flash</title>
		<link>http://www.zingchart.com/blog/2011/05/10/zingchart-now-rendering-charts-in-html5-canvas-svg-vml-and-flash/</link>
		<comments>http://www.zingchart.com/blog/2011/05/10/zingchart-now-rendering-charts-in-html5-canvas-svg-vml-and-flash/#comments</comments>
		<pubDate>Tue, 10 May 2011 21:51:42 +0000</pubDate>
		<dc:creator>abegin</dc:creator>
				<category><![CDATA[News and Updates]]></category>
		<category><![CDATA[charting library]]></category>
		<category><![CDATA[flash charts]]></category>
		<category><![CDATA[html5 canvas charts]]></category>
		<category><![CDATA[ipad compatible charts]]></category>
		<category><![CDATA[svg charts]]></category>
		<category><![CDATA[vml]]></category>

		<guid isPermaLink="false">http://www.zingchart.com/blog/?p=526</guid>
		<description><![CDATA[The Most Compatible JavaScript Charting Library Available just got more compatible Dear ZingChart customers, tinkerers and evaluators, Just over a year ago we released the first charting library capable of rendering Flash and HTML5 Canvas. It was a big achievement, and even earned us a nod from Zeldman. Today, we&#8217;re raising the bar again with [...]]]></description>
			<content:encoded><![CDATA[<h2>The Most Compatible JavaScript Charting Library Available just got more compatible</h2>
<p>Dear ZingChart customers, tinkerers and evaluators,</p>
<p>Just over a year ago we released the first charting library capable of rendering Flash and HTML5 Canvas. It was a big achievement, and even earned us a <a href="http://www.zeldman.com/2010/04/15/web-charts-with-html5-flash/" target="_blank">nod from Zeldman</a>. Today, we&#8217;re raising the bar again with two additional render formats.</p>
<p>ZingChart now renders charts in <a href="http://en.wikipedia.org/wiki/Scalable_Vector_Graphics" target="_blank">Scalable Vector Graphics</a> (SVG) and <a href="http://en.wikipedia.org/wiki/Vector_Markup_Language" target="_blank">Vector Markup Language</a> (VML) in addition to Flash and HTML5 Canvas. Those of you who are familiar with all the benefits and limitations of each technology already know how many headaches and hours you can save by building once and rendering across HTML5, SVG, VML and/or Flash. For those that don&#8217;t, here&#8217;s a quick overview:</p>
<ul>
<li>Despite the fact that iPads, iPhones and some other mobile devices don&#8217;t run Flash, we&#8217;re not jumping on the anti-Flash bandwagon. Flash still reigns supreme for many charting needs &#8211; mobile is just not currently one of them.</li>
<li>While SVG is a solid technology for building interactive charts (and the sole technology selected by many other libraries&#8217; HTML5 efforts), it&#8217;s not always the best solution. We&#8217;ll refer to the <a href="http://blogs.msdn.com/b/ie/archive/2011/04/22/thoughts-on-when-to-use-canvas-and-svg.aspx" target="_blank">IE Blog</a> for further reading.</li>
<li>Why use ancient VML, you ask? Internet Explorer 6, 7 and 8 render neither HTML5 Canvas nor SVG natively. And since many of you have been going the sans-Flash route for your data visualization, we didn&#8217;t find it helpful to force your users to take the performance hit of ExCanvas.</li>
</ul>
<p>We&#8217;ve been working hard on making ZingChart as forward and backward compatible as possible, so you won&#8217;t need to worry about using multiple libraries or sacrificing the performance or functionality of your apps, websites and dashboards. We&#8217;ll keep fighting the format wars so you can keep building great products and projects with ZingChart.</p>
<p><a href="http://zingchart.com/download">Download ZingChart</a> for SVG, HTML5 Canvas, Flash and VML.</p>
<p><a href="http://zingchart.com/#chart-gallery">Browse</a> the Chart Gallery.</p>
<p><a href="http://twitter.com/home?status=@ZingChart%20now%20builds%20charts%20in%20%23SVG,%20%23HTML5%20Canvas,%20%23Flash%20and%20VML%20-%20http://zingchart.com/blog" target="_blank">Share this</a> post on twitter.</p>
<p>Happy Charting,<br />
Andrew Begin<a href="mailto:abegin@zingchart.com"><br />
abegin@zingchart.com</a><br />
858-490-5281</p>
]]></content:encoded>
			<wfw:commentRss>http://www.zingchart.com/blog/2011/05/10/zingchart-now-rendering-charts-in-html5-canvas-svg-vml-and-flash/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Watch this Space &#8211; ZingChart News is Brewing</title>
		<link>http://www.zingchart.com/blog/2011/04/20/watch-this-space-zingchart-news-is-brewing/</link>
		<comments>http://www.zingchart.com/blog/2011/04/20/watch-this-space-zingchart-news-is-brewing/#comments</comments>
		<pubDate>Wed, 20 Apr 2011 17:58:22 +0000</pubDate>
		<dc:creator>abegin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.zingchart.com/blog/?p=513</guid>
		<description><![CDATA[We&#8217;ve been quiet for a while now. Aside from keeping our tweet stream filled with 140-char bursts of demos and other fun dataviz news, we&#8217;ve been busy coding away on some great features and updates to push our charting library &#8211; and our customers&#8217; applications &#8211; to their full potential. Along the way, we&#8217;re exploring [...]]]></description>
			<content:encoded><![CDATA[<p>We&#8217;ve been quiet for a while now. Aside from keeping our <a href="http://twitter.com/zingchart">tweet stream</a> filled with 140-char bursts of demos and other fun dataviz news, we&#8217;ve been busy coding away on some great features and updates to push our charting library &#8211; and our customers&#8217; applications &#8211; to their full potential. Along the way, we&#8217;re exploring the outer limits of what&#8217;s possible with JavaScript in desktop and mobile browsers, and finding some interesting data along the way. </p>
<p>We&#8217;re almost ready to share some of the updates and findings, so <a href="http://zingchart.com/blog/?feed=rss2">subscribe </a>to our feed or <a href="http://twitter.com/zingchart">follow us</a> to be the first to know. </p>
<p>Interested in getting a first look? Give us a shout at <a href="mailto:sales@zingchart.com">sales@zingchart.com</a>. </p>
]]></content:encoded>
			<wfw:commentRss>http://www.zingchart.com/blog/2011/04/20/watch-this-space-zingchart-news-is-brewing/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ZingChart How-to: Pinpoint Chart Data with Crosshair Guides</title>
		<link>http://www.zingchart.com/blog/2011/01/11/zingchart-how-to-pinpoint-chart-data-with-crosshair-guides/</link>
		<comments>http://www.zingchart.com/blog/2011/01/11/zingchart-how-to-pinpoint-chart-data-with-crosshair-guides/#comments</comments>
		<pubDate>Wed, 12 Jan 2011 00:54:59 +0000</pubDate>
		<dc:creator>abegin</dc:creator>
				<category><![CDATA[How-to's]]></category>
		<category><![CDATA[crosshair-x]]></category>
		<category><![CDATA[crosshair-y]]></category>
		<category><![CDATA[crosshairs]]></category>
		<category><![CDATA[guides]]></category>
		<category><![CDATA[jumped]]></category>
		<category><![CDATA[line chart]]></category>
		<category><![CDATA[segmented]]></category>
		<category><![CDATA[stepped]]></category>
		<category><![CDATA[tooltips]]></category>

		<guid isPermaLink="false">http://www.zingchart.com/blog/?p=493</guid>
		<description><![CDATA[Many of our users have shown interest in our &#8220;guide&#8221;: feature that allows chart viewers to hover over areas of a visualization and see what series values are available for a given x-axis node (see traditional guide example here). The guide feature is a great one since it doesn&#8217;t require end users to hover over [...]]]></description>
			<content:encoded><![CDATA[<p>Many of our users have shown interest in our &#8220;guide&#8221;: feature that allows chart viewers to hover over areas of a visualization and see what series values are available for a given x-axis node (see traditional guide example <a href="http://www.zingchart.com/labs/html5/scientific_notation_chart_logs.php" target="_blank">here</a>). The guide feature is a great one since it doesn&#8217;t require end users to hover over exact nodes to trigger tooltips, and it allows for viewing more than one tooltip at a time for comparing series values.</p>
<p>Well, we recently took our guides one step further and gave them a new name in the process. These hover-guides are to be called &#8220;crosshair-x&#8221;: and &#8220;crosshair-y&#8221;: and are new objects within the &#8220;graphset&#8221;:. They&#8217;re customizable, and they are awesome. Give them a try:</p>
<p><script src="http://zingchart.com/scripts/jquery/js/jquery-1.3.2.min.js" type="text/javascript"></script> <script src="http://zingchart.com/package/zingchart-1.1.min.js" type="text/javascript"></script><script type="text/javascript"> var lineChart = '{"graphset":[{"type":"line","title":{"font-size":"14","text-align":"center","text":"Line Chart Demo<br/>Aspects: Spline, Stepped, Jumped, Segmented","height":"50"},"plotarea":{"margin":"70 50 80 100"},"scale-x":{"label":{"text":"Scale X"},"font-size":"14","font-weight":"bold","max-items":6,"values":["Jan 09","Feb 09","Mar 09","Apr 09","May 09","Jun 09","Jul 09","Aug 09","Sep 09","Oct 09","Nov 09","Dec 09","Jan 10","Feb 10","Mar 10","Apr 10","May 10","Jun 10","Jul 10","Aug 10","Sep 10","Oct 10","Nov 10","Dec 10"]},"scale-y":{"values":"0:1500:250","decimals":"2","max-items":5,"label":{"text":"Scale Y"},"font-size":"14","font-weight":"bold","format":"$%v"},"crosshair-x":{"text":"%t Sales:<br/>%k: $%v","line-color":"red","font-color":"#000","font-weight":"bold","value-label":{"alpha":0.6},"marker":{"size":"0","border-color":"-1","border-width":0}},"crosshair-y":{"line-color":"red","value-label":{"visible":0},"scale-label":{"font-color":"#000"},"marker":{"size":"0","type":"none","border-width":0}},"plot":{"line-width":"2","marker":{"type":"none"}},"tooltip":{"visible":0},"series":[{"values":[687.4,741.2,727.2,736.8,721.6,584.4,591,631.5,775.6,783.4,761.8,785.8,811.1,791.2,803.8,850.3,848.9,870,837.7,833,767.5,806.3,855.8,879.6,883.1,894.4,867.8,802.8,829.2,816.1],"text":"Apple","aspect":"spline"},{"values":[584.4,791.2,803.8,850.3,848.9,870,837.7,833,767.5,806.3,855.8,879.6,883.1,894.4,867.8,802.8,829.2,816.1,687.4,741.2,727.2,736.8,721.6,775.6,591,631.5,785.8,811.1,783.4,761.8],"text":"Banana","aspect":"segmented"},{"values":[198,231.6,175.2,135.7,83.6,69.4,139,83.9,89.9,143.7,206.7,240.8,240,298,269.8,283.3,224,253.2,307.5,326.5,380.3,448.2,386.7,362.7,293.9,358.6,381.3,401.6,338.1,318.4],"text":"Orange","aspect":"stepped"},{"values":[198,293.9,358.6,381.3,401.6,338.1,318.4,231.6,175.2,240,298,269.8,283.3,224,253.2,307.5,326.5,135.7,83.6,69.4,139,83.9,89.9,143.7,206.7,240.8,380.3,448.2,386.7,362.7],"text":"Grape","aspect":"jumped"}]}]}';
$(document).ready(function() {zingchart.render({
		    liburl 			: 'http://zingchart.com/package/zingchart.swf',
			data 		: lineChart,
			width			: 500,
			height			: 400,
			container 		: 'lineChartContainer'
		})});
</script></p>
<div id="lineChartContainer"></div>
<p>NOTE: If you ever want to dig deeper into JSON that drives one of our charts, just right click on it and select View Source.</p>
<p>The crosshair-x and crosshair-y features are fully customizable, from the lines to the tooltips (&#8220;value-label&#8221;:) to the labels for scale-x and scale-y (&#8220;scale-label&#8221;:). Here&#8217;s some sample code to try out to get you started:</p>
<p>(the following goes within &#8220;graphset&#8221;:[{}])</p>
<pre>"crosshair-x":{
            "text":"%t Sales: %k: $%v",
            "line-color":"red",
            "line-width":"3px",
            "font-color":"purple",
            "font-weight":"bold",
            "value-label":{
               "alpha":0.6,
               "background-color":"green"
            },
            "scale-label":{
               "alpha":1,
               "background-color":"#0000ff",
               "font-color":"#ffffff",
               "font-weight":"bold"
            },
            "marker":{
               "size":"3",
               "background-color":"#ff0000",
               "border-color":"#00ff00",
               "border-width":"2px"
            }
         }</pre>
<p>Happy Charting!</p>
<p><a href="http://www.twitter.com/zingchart" target="_blank">Mention us on Twitter</a> or <a href="mailto:support@zingchart.com">Email us</a> with any questions!</p>
<p>- Andrew</p>
]]></content:encoded>
			<wfw:commentRss>http://www.zingchart.com/blog/2011/01/11/zingchart-how-to-pinpoint-chart-data-with-crosshair-guides/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How-to: Customize the HTML5 GUI for iPhone and iPad</title>
		<link>http://www.zingchart.com/blog/2010/11/18/how-to-customize-the-html5-gui-for-iphone-and-ipad/</link>
		<comments>http://www.zingchart.com/blog/2010/11/18/how-to-customize-the-html5-gui-for-iphone-and-ipad/#comments</comments>
		<pubDate>Thu, 18 Nov 2010 21:14:21 +0000</pubDate>
		<dc:creator>abegin</dc:creator>
				<category><![CDATA[How-to's]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[charts for mobile]]></category>
		<category><![CDATA[context-menu]]></category>
		<category><![CDATA[GUI]]></category>
		<category><![CDATA[how-to]]></category>
		<category><![CDATA[html5]]></category>
		<category><![CDATA[ipad charts]]></category>
		<category><![CDATA[iphone charts]]></category>
		<category><![CDATA[mobile]]></category>

		<guid isPermaLink="false">http://www.zingchart.com/blog/?p=475</guid>
		<description><![CDATA[Quite a few people have been asking us what the &#8220;black box with the question mark&#8221; on our HTML5 charts are when rendered on a mobile device such as the iPhone or iPad. After seeing how pleasantly surprised they are after they find out, I figured it was time to reveal the mystery. This &#8220;black [...]]]></description>
			<content:encoded><![CDATA[<p>Quite a few people have been asking us what the &#8220;black box with the question mark&#8221; on our HTML5 charts are when rendered on a mobile device such as the iPhone or iPad. After seeing how pleasantly surprised they are after they find out, I figured it was time to reveal the mystery. This &#8220;black box&#8221; that [by default] only shows up on mobile devices rendering HTML5 charts is actually a GUI for accessing the ZingChart right-click context menu. This allows mobile chart users to reload, view as JPG/PNG image and access some very cool features that you probably don&#8217;t yet know exist (<a href="../../labs/flash/custom_rightclick_chart_demo.php" target="_self">sneak-peek</a>, anyone?).</p>
<h2>Default Mobile Context Menu Button</h2>
<p>By default, the context-menu button is placed in the top left corner of the chart and is set to visible.</p>
<div class="wp-caption alignnone" style="width: 330px"><a href="http://www.zingchart.com/labs/html5/styling_gauge_charts.php"><img class=" " style="border: 2px solid black;" title="html5_mobile_chart_gui_default" src="http://www.zingchart.com/blog/wp-content/uploads/2010/11/HTML5_mobile_chart_GUI.jpg" alt="Default mobile context-menu GUI on HTML5 Gauge chart via iPhone 3G. " width="320" height="480" /></a><p class="wp-caption-text">Default mobile &quot;context-menu&quot; GUI on HTML5 Gauge chart via iPhone 3G. </p></div>
<h2>Customizing the Mobile Context Menu Button</h2>
<p>By adding the &#8220;context-menu[mobile]&#8220;: object outside of &#8220;graphset&#8221;: in your JSON packet, you can hide, position and customize how this button looks to your end user. It&#8217;s even possible to use an image to add your own custom menu button.</p>
<p><div class="wp-caption alignnone" style="width: 490px"><a href="http://www.zingchart.com/labs/html5/custom_data_variables.php"><img class="  " style="border: 2px solid black;" title="html5_mobile_chart_gui_custom" src="http://www.zingchart.com/blog/wp-content/uploads/2010/11/HTML5_mobile_chart_GUI_custom.jpg" alt="The context menu button can be customized and styled using the context-menu[mobile] object." width="480" height="320" /></a><p class="wp-caption-text">The button can be customized and styled in the mobile context menu object.</p></div>The colors, fonts and padding of the dropdown menu are all fully customizable:</p>
<div class="wp-caption alignnone" style="width: 490px"><a href="http://www.zingchart.com/labs/html5/custom_data_variables.php"><img class=" " style="border: 2px solid black;" title="html5_mobile_context_menu_custom" src="http://www.zingchart.com/blog/wp-content/uploads/2010/11/HTML5_mobile_chart_menu.jpg" alt="Fonts, padding and colors of the mobile context menu can all be customized" width="480" height="320" /></a><p class="wp-caption-text">Fonts, padding and colors of the mobile context menu can all be customized.</p></div>
<p>Here&#8217;s how we customized the above mobile context menu button:</p>
<pre>{
 "gui" : {
     "context-menu[mobile]" : {
         "background-color" : "#ff6600",
         "item" : {
             "padding" : "5px 30px",
             "background-color" : "#ff6600",
             "border-color" : "#ff6600"
             },
         "button" : {
             "text" : "Click Here for Mobile Options",
             "margin" : "10px 200px auto 100px",
             "padding": "15px 15px 7px 15px",
             "background-color": "#ff6600 #ff9933",
             "border-color": "#000000",
             "border-width": "3px",
             "border-radius": "15px",
             "font-color": "#000",
             "font-size" : 16,
             "visible":1
             }
         }
     },
 "graphset" : [ .... normal chart JSON attributes here .... ]</pre>
<p>Now you know what the &#8220;little black box with the question mark&#8221; is, and you know how to use it. If you took a look at the <a href="http://www.zingchart.com/labs/flash/custom_rightclick_chart_demo.php" target="_self">sneak-peek</a>, you&#8217;re hopefully excited to be able to customize the context menu items in your HTML5 charts in mobile. We sure are!</p>
<p><img src="file:///C:/Documents%20and%20Settings/abegin/Desktop/ZingMarketing/HTML5_mobile_chart_GUI.jpg" alt="" /></p>
<p><img src="file:///C:/Documents%20and%20Settings/abegin/Desktop/ZingMarketing/HTML5_mobile_chart_GUI.jpg" alt="" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.zingchart.com/blog/2010/11/18/how-to-customize-the-html5-gui-for-iphone-and-ipad/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>ZingChart tips &amp; tricks &#8211; Commenting-Out Chart Properties</title>
		<link>http://www.zingchart.com/blog/2010/08/16/zingchart-tips-tricks-commenting-out-chart-properties/</link>
		<comments>http://www.zingchart.com/blog/2010/08/16/zingchart-tips-tricks-commenting-out-chart-properties/#comments</comments>
		<pubDate>Mon, 16 Aug 2010 16:44:41 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[tips & tricks]]></category>

		<guid isPermaLink="false">http://www.zingchart.com/blog/?p=470</guid>
		<description><![CDATA[When creating a ZingChart JSON packet you may find yourself fiddling with properties to fine tune the style and structure of your chart.  An easy way to accomplish this is to utilize the dash (-) trick.  Basically, if you want to exclude a property from ZingChart's render just put a - at the front of it.  For example here you may have placed some notes in a line chart.]]></description>
			<content:encoded><![CDATA[<p>When creating a ZingChart JSON packet you may find yourself fiddling  with properties to fine tune the style and structure of your chart.  An  easy way to accomplish this is to utilize the dash (-) trick.   Basically, if you want to exclude a property from ZingChart&#8217;s render  just put a dash at the front of it, within the parenthesis.  For example here you may have placed  some notes in a line chart.</p>
<pre>{
  "graphset" : [
  {
    "type" : "line",
    "notes": [
    	{"text": "Our first note", "x": 100, "y": 40},
    	{"text": "I love oranges", "x": 280, "y": 100}

    ],
    "series" : [
     {
        "values" : [11,26,7,44,11,28,42,26,13,32,12,4,21,11,43,39]
     },
     {
        "values" : [42,13,21,15,33,10,30,46,10,7,27,40,1,32,22,45]
     },
     {
        "values" : [23,24,13,4,18,6,24,10,26,44,32,17,17,27,14,36]
     }]
  }]
}</pre>
<p>However, now you want to hide one of the notes because it is in the way  of something you are working on so you just prefix the note in question  with a dash and it is gone.</p>
<pre>{
  "graphset" : [
  {
    "type" : "line",
    "notes": [
    	{"text": "Our first note", "x": 100, "y": 40},
    	{"-text": "I love oranges", "x": 280, "y": 100}

    ],
    "series" : [
     {
        "values" : [11,26,7,44,11,28,42,26,13,32,12,4,21,11,43,39]
     },
     {
        "values" : [42,13,21,15,33,10,30,46,10,7,27,40,1,32,22,45]
     },
     {
        "values" : [23,24,13,4,18,6,24,10,26,44,32,17,17,27,14,36]
     }]
  }]
}</pre>
<p>No parse error and it is easy to recover the property later on.  The  dash is somewhat arbitrary, but the basic rule of thumb is ZingChart will  ignore unknown properties as long as they are quoted properly.  You  could thus use DEBUG-text or whatever you wanted to prefix the property  with, we have over time just found the single &#8211; character the most  natural way to mask things out when you are tinkering with a chart JSON  packet.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.zingchart.com/blog/2010/08/16/zingchart-tips-tricks-commenting-out-chart-properties/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ZingChart tips &amp; tricks &#8211; Removing Graphset</title>
		<link>http://www.zingchart.com/blog/2010/08/05/zingchart-tips-tricks-removing-graphset/</link>
		<comments>http://www.zingchart.com/blog/2010/08/05/zingchart-tips-tricks-removing-graphset/#comments</comments>
		<pubDate>Thu, 05 Aug 2010 20:39:47 +0000</pubDate>
		<dc:creator>abegin</dc:creator>
				<category><![CDATA[tips & tricks]]></category>
		<category><![CDATA[graphset]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[tricks]]></category>

		<guid isPermaLink="false">http://www.zingchart.com/blog/?p=465</guid>
		<description><![CDATA[Commonly a ZingChart JSON packet is formatted to include a graphset to allow for a trellis of charts. However, if you have only one graph that is really not needed. For example, a simple line might be written as { "graphset" : [ { "type" : "line", "series" : [ { "values" : [11,26,7,44,11,28,42,26,13,32,12,4,21,11,43,39] }] [...]]]></description>
			<content:encoded><![CDATA[<p>Commonly a ZingChart JSON packet is formatted to include a <tt>graphset</tt> to allow for a trellis of charts. However, if you have only one graph that is really not needed.</p>
<p>For example, a simple line might be written as</p>
<pre>{
  "graphset" : [
  {
    "type" : "line",
    "series" : [
     {
        "values" : [11,26,7,44,11,28,42,26,13,32,12,4,21,11,43,39]
     }]
  }]
}</pre>
<p>However it can be simplified to:</p>
<pre>{
    "type" : "line",
    "series" : [
     {
        "values" : [11,26,7,44,11,28,42,26,13,32,12,4,21,11,43,39]
     }]
}</pre>
<p>This simple tip saves a few bytes, reduces nesting complexity and works with both Flash and HTML5 versions of ZingChart.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.zingchart.com/blog/2010/08/05/zingchart-tips-tricks-removing-graphset/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>On Data-Ink, Chartjunk and Chartbling</title>
		<link>http://www.zingchart.com/blog/2010/05/21/on-data-ink-chartjunk-and-chartbling/</link>
		<comments>http://www.zingchart.com/blog/2010/05/21/on-data-ink-chartjunk-and-chartbling/#comments</comments>
		<pubDate>Sat, 22 May 2010 00:19:46 +0000</pubDate>
		<dc:creator>abegin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.zingchart.com/blog/?p=446</guid>
		<description><![CDATA[Data visualization is becoming a popular item all over the internet. Major media outlets like Mashable and Huffington Post don&#8217;t seem to go a day without posting the newest infographic. What&#8217;s interesting is that half the world praises these graphics while the other half brands them chartjunk. The amount of available data and amount of designers [...]]]></description>
			<content:encoded><![CDATA[<p>Data visualization is becoming a popular item all over the internet. Major media outlets like Mashable and Huffington Post don&#8217;t seem to go a day without posting the newest infographic. What&#8217;s interesting is that half the world praises these graphics while the other half brands them <a href="http://en.wikipedia.org/wiki/Chartjunk">chartjunk</a>. The amount of available data and amount of designers seem to be plentiful, but the combination of the two is proving to be volatile.</p>
<p>Being a team that creates data visualization tools, we&#8217;re well read on dataviz best practices, and are also in tune with the demand for exciting and intriguing visuals. We&#8217;ve stayed on the sidelines of the debate, but we decided it&#8217;s time to offer our 2 cents.</p>
<h2 style="font-size: 1.5em;">Tufte vs. Chartjunk</h2>
<p>There&#8217;s a battle going on between data visualization professionals like Stephen Few and Edward Tufte (the Jakob Nielsen of Infographics), and design professionals. One side is calling for minimization of chartjunk and the end of the over-designed infographic, while the other is pushing the boundaries of how much design can be applied to data before the data becomes an afterthought. With the flood of publicly available datasets over the past few years, it seems that the debate is just getting started.</p>
<h2 style="font-size: 1.5em;">Our Bismarckian View</h2>
<p>We aren&#8217;t going to try to convert our readers to follow the gospel of Tufte, because many of our customers have great uses for colorful and image-infused graphs. Having said that; <em><a href="http://www.perceptualedge.com/library.php#Books">Now you see it</a></em>, <em><a href="http://www.edwardtufte.com/tufte/books_vdqi">The Visual Display of Quantitative Information</a></em> and <em><a href="http://www.amazon.com/gp/product/0970601999?ie=UTF8&amp;tag=perceedge-20&amp;linkCode=as2&amp;camp=1789&amp;creative=9325&amp;creativeASIN=0970601999%22">Show Me the Numbers</a></em> are within our reach at all times, and get referenced often.</p>
<p>Our view is, a black and white line chart with no labels won&#8217;t reach a fraction of the audience that some of today&#8217;s poorest visualizations do, whereas an infographic filled to the brim with 3D pies, images, large text and loosely related graphics may reach tens of thousands of viewers without delivering any consumable, meaningful or accurate data.</p>
<p>We&#8217;d argue that the amount of non-data-ink or chartjunk used is irrelevant to data comprehension as long as the ink (err.. pixels) is used <em>appropriately</em>.</p>
<p>Here&#8217;s some context for &#8220;appropriate:&#8221;</p>
<ol>
<li><strong>Audience.</strong> The same discretion must be used for charts and graphs as for any other form of communication. Is your audience composed of C-suite individuals who may us your data to make decisions, or creative folk who may focus more on the visual impact and story the data tells?</li>
<li><strong>Topic.</strong> Stock data should be represented in the most straightforward way possible, as its misinterpretation could cost your reader a lot of money. Public opinion percentages or editorial data is often less critical to decision-making and can benefit from some graphic elements to tell a story. Compare a chart in any copy of <a href="http://www.usatoday.com/news/snapshot.htm?section=S&amp;label=2010-05-21-ochoa">USA Today</a> to one in the <a href="http://online.wsj.com/mdc/public/page/mdc_us_stocks.html?mod=mdc_topnav_2_3000">Wall Street Journal</a>. The styles couldn&#8217;t be further apart, yet both are appropriate for the medium.</li>
<li><strong>Chart-type.</strong> This may be the biggest thorn in the side of dataviz professionals &#8212; when a designer uses charts that don&#8217;t accurately represent data. On this front, we&#8217;ll side with Tufte, Few and the other educators. No amount of design will make up for a data visualization that poorly portrays or skews the data.<br />
To further complicate the chart-type issue, Stephen Few recently released a <a href="http://www.perceptualedge.com/articles/visual_business_intelligence/our_fascination_with_all_things_circular.pdf">newsletter</a> about the failure of circular chart-types.  Long story short: circles are great for design, bad for visualizing data.</li>
<li><strong>Relevance.</strong> As explored in Robert Kosara&#8217;s <a href="http://eagereyes.org/criticism/chart-junk-considered-useful-after-all">&#8220;Chart Junk Considered Useful After All&#8221;</a> post and subsequent discussion, there is definitely some validity to having graphics built into a visualization; it helps &#8220;engage the reader‘s interest&#8221; which results in higher comprehension and retention rates. Note, however, that the graphical elements used in Nigel Holmes&#8217;s study didn&#8217;t skew the data and were relevant to the story that the data was trying to tell, which is hardly the case with many infographics floating around.</li>
</ol>
<h2 style="font-size: 1.5em;">Chartjunk vs. Chartbling</h2>
<p>There is one fire we&#8217;re willing to start and pour some fuel on. With the interactive capabilities of Flash and HTML5 we can now <a href="http://www.zingchart.com/labs/blog_charts/coffee_consumption.html">hover</a>, click, alter, <a href="http://www.zingchart.com/support/customer/demos/html5beta/examples/datescale.html">zoom</a>, drill-down, and manipulate data visualizations in real-time. We can use <a href="http://www.zingchart.com/labs/blog_charts/piano_chart_rules.html">rules</a> to set the color or style of plots based on their value. Some of these features may fall within the current definition of &#8220;chartjunk&#8221; but we&#8217;d offer that the current definition was built for the printed chart and doesn&#8217;t take into account new technology. We propose new nomenclature for visual elements in charts that are not necessary for data comprehension, but that do increase the engagement, interaction and viral reach of a visualization. We&#8217;re going with chartbling for now.</p>
<h2 style="font-size: 1.5em;">Conclusion:</h2>
<p>We DON&#8217;T advocate stuffing a chart with graphics and images for the sole purpose of making it colorful and visually stimulating &#8212; that is and will always be chartjunk&#8230;</p>
<div id="attachment_447" class="wp-caption alignnone" style="width: 531px"><a href="http://www.newscientist.com/data/images/archive/2573/25731101.jpg"><img class="size-full wp-image-447" title="landusebeforehumans" src="http://www.zingchart.com/blog/wp-content/uploads/2010/05/landusebeforehumans1.png" alt="landusebeforehumans" width="521" height="173" /></a><p class="wp-caption-text">If you think pie charts are poor by themselves, try comparing the results of these two related pies without hurting your brain. #chartjunk. </p></div>
<p><div id="attachment_450" class="wp-caption alignnone" style="width: 310px"><a href="http://www.newscientist.com/data/images/archive/2573/25731101.jpg"><img class="size-full wp-image-450 " title="retrevochart" src="http://www.zingchart.com/blog/wp-content/uploads/2010/05/retrevochart1.png" alt="The stock images used here are loosely [at best] tied to the story, and are too much of a distraction to provide any comprehension/retention benefit." width="300" height="284" /></a><p class="wp-caption-text">The stock images used here are barely tied to the story, and are too much of a distraction to provide any comprehension/retention benefit. #chartjunk</p></div>We DO commend those who bridge the gap between Tufte and Art by creating intriguing visualizations that readers want to study, understand and share with others. These are the individuals who will uncover important data, brush it off and deliver it to the masses.</p>
<div id="attachment_452" class="wp-caption alignnone" style="width: 491px"><a href="http://www.guardian.co.uk/news/datablog/2010/feb/22/information-beautiful-sea-level-rise-climate-change#zoomed-picture"><img class="size-full wp-image-452" title="whensealevelsattack" src="http://www.zingchart.com/blog/wp-content/uploads/2010/05/whensealevelsattack.png" alt="This infographic by David McCandless of http://infobeautiful.net adds interesting visual elements to a basic bar chart to help tell the story of rising sea levels. #chartbling" width="481" height="380" /></a><p class="wp-caption-text">This infographic by David McCandless of http://infobeautiful.net adds interesting colors and graphics to a basic bar chart to help tell the story of rising sea levels. #chartbling</p></div>
<p>Share your thoughts below or with us on <a href="http://twitter.com/zingchart">twitter</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.zingchart.com/blog/2010/05/21/on-data-ink-chartjunk-and-chartbling/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
	</channel>
</rss>

