Quantcast
Channel: SCN : All Content - SAPUI5 Developer Center
Viewing all articles
Browse latest Browse all 6178

BulletChart is not shown in the ChartTile

$
0
0

Hi Experts,

 

I am facing a problem with the sap.suite.ui.commons.ChartTile.

 

The chart tile and its properties are successfuly shown but the bullet chart, which defined in the content area of the chart tile, is unfortunaltely not shown. The chart tile is declared in the content aggregation of the sap.m.Page.


I nearly copied everything from the demo application, which can be found in the SDK-Website.Here is the code:

 

new sap.suite.ui.commons.ChartTile("chart-tile-bullet", {              unit: "Test",              title: localStorage.selectedDate,              description:"Hello",              footer:"Test",              content :                 new sap.suite.ui.commons.BulletChart("chart-tile-bullet-chart",{              scale: "-Std",                  actual: {      value: 5,      color: sap.suite.ui.commons.InfoTileValueColor.Neutral              },                  targetValue: 7,
//                 maxValue:24,
//                 minValue:0,
//                 actualValueLabel:"Ist",
//                 targetValueLabel :"Soll",                  thresholds: [                   {                      value: 0,                      color: sap.suite.ui.commons.InfoTileValueColor.Error                 },                {                      value: 8,                      color: sap.suite.ui.commons.InfoTileValueColor.Neutral                  },                  {                      value: 16,                      color: sap.suite.ui.commons.InfoTileValueColor.Neutral                  },                  {                      value: 24,                      color: sap.suite.ui.commons.InfoTileValueColor.Error                  },                  ]              }),              press: function (oEvent) {                  sap.m.MessageToast.show("The small chart tile is pressed");              }          })

Here is the result :

charttile.PNG

 

Any suggestion to solve the problem is welcome.

 

Best regards,

Cem


Viewing all articles
Browse latest Browse all 6178

Trending Articles



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