Hi,
Its the same approach how we define the i5Chart using the standard MII syntax, when trying to place the chart in the view, its giving error.
If code is still needed then find below:
(part of controller)
1st way: |
var oChart = new com.sap.xmii.chart.hchart.i5Chart("display template", "query template"); | ||
oChart.draw("id--chartPanel"); //by inspecting the div |
2nd Way:
var oChart = new com.sap.xmii.chart.hchart.i5Chart("display template", "query template"); | ||||
var oHtml = new sap.ui.core.HTML({ | ||||
content :"<div id='content'>" | ||||
}); |
oChart.draw(content); | ||
panel.addContent(oHtml); | ||
***error in both the case ".draw" is not a function*****
Any idea?
Thanks & Best Regards,
Venkatesh