Hi Venkateshy,
In such scenarios, easiest way would be
- to test the display template.
- view the source code
- copy the code that renders the i5chart.
- paste it on the view that you created.
- rename the id and other stuffs.
- remove session id, if any.
For now your can refer below code:
var addProps =
'{"LabelColumns":"Year","MappedQueryTemplate":"Path/QueryTemplatePath","DisplayTemplate":"Path/DisplayTemplatePath","CachedQueryTemplate":"Path/QueryTemplatePath","MappedQueryParamColumns":"Ma
ppedColumns","Applet":"i5Chart","Height":"400","QueryTemplate":"Path/QueryTemplatePath","CachedQueryTemplateColumns":"[CachedCOlumns]","ValueColumns":"ValueColums","Width":"640","Content-Type"
:"image/png"}';
var c = new com.sap.xmii.chart.hchart.i5Chart('DisplayTemplatePath','QueryTemplatePath',addProps);
c.draw('content');
Just replace relevant properties with exact value.
Hope this works.
Best Regards,
Swaroop