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

Re: How to use Comparison chart in SAPUI5 1.34.8 in javascript view ?

$
0
0

Hi experts,

     

               I am able to view my generic tile without adding the comparison chart(CHART DATA). When I add the code for comparison chart it stops loading the page with error message.

 

below is my code for drawing the comparison chart i think i missed something in this....

 

================================================================

var newContent = new sap.suite.ui.microchart.ComparisonMicroChart("idDeptChart" + i,

{

             size: "M"

             , scale: ""

             , data: [

                       new sap.suite.ui.microchart.ComparisonMicrochartData({

                               title: "total Employee"

                               , value: parseInt(tEmp)

                               , color: sap.suite.ui.commons.InfoTileValueColor.Good

                      })

                      , new sap.suite.ui.microchart.ComparisonMicrochartData({

                               title: "Emp Count"

                               , value: parseInt(eCount)

                               , color: ((parseInt(eCount)) >= (parseInt(tEmp) / 2)) ? "Error" : "Critical"

                       })

               ]

});

var tileContent = new sap.m.TileContent("idInTileCont" + i, {

        unit: dLead

        , size: "L"

        , content: [

                  newContent

           ]

});

=========================================================

So please help me out to clear this problem in sap version 1.34.8


Viewing all articles
Browse latest Browse all 3116


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