the component template
{view:"diagram", template:"value"}
// the diagram will show value of each data item from the specified datasource
{ view:"diagram", template:"value" }
{ view:"diagram", template:function(obj){
if(obj.type == "text")
return obj.value?"<span class='yes'>YES</span>":"<span class='no'>NO</span>";
return obj.value;
}}
{ view: "diagram", template:"html->template_container" }
{ view:"diagram", template:"http->template.html" }