We use Fusion graphics with our web site and would like to know if it is possible to use Fusion Graphics in a DataView. Below is some javascript which shows how we can load a chart on a web page. Is there any way to tranlate this into a DataView.
While it possible - it may be not a good desigion.
Many actions causes full repaint of dataview, and while it is fine for static html object - it may cause unwanted sideeffect for dynamically created entities.
data = new dhtmlXDataView({
container:"data_container",
template:function(obj){
var id = dhtmlx.uid();
window.setTimeout(function(){
var myChart = new FusionCharts("http://mystuff/FusionWidgets_Enterprise/Charts/AngularGauge.swf", "myChartId", "260", "200", " 0", "0");
myChart.setDataURL("http://mystuff/FusionWidgets_Enterprise/Gallery/Data/Angular7.xml");
myChart.render("area_"+id);
},1);
return "<div id='area_"+id+"'></div>";
}
});