Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 3548

Re: Need help on i5Chart(SAP MII) using UI5 XML Views?

$
0
0

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


Viewing all articles
Browse latest Browse all 3548

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>