Hi All, I have a situation where my y-axis label values are showing in millions (as in the picture). The backend service is sending value as integer values but they are just number of loads and not any financial figures to be displayed in millions. Can anyone please suggest me a way to format the label into small integer values and not in millions value. My code is as below:
var amModel = new sap.ui.model.json.JSONModel({
'businessData' : [
{date:"20.10.2016",item:"books",loads:1},
{date:"20.10.2016",item:"notebooks",loads:2},
{date:"20.11.2016",item:"Pens",loads:3},
{date:"20.11.2016",item:"notebooks",loads:2},
{date:"20.12.2016",item:" ",loads:" "}
]
});
var oDataset = new sap.viz.ui5.data.FlattenedDataset({
'dimensions' : [{
'name' : 'date',
'value' : "{date}"
},{
'name' : 'item',
'value' : "{item}"
}],
'measures' : [
// measure 1
{
'name' : 'No of loads', // 'name' is used as label in the Legend
'value' : '{loads}' // 'value' defines the binding for the displayed value
}],
'data' : {
'path' : "/businessData"
}
});
oVizFrame.setVizProperties( {
valueAxis: {
label: {
formatString: 'u'
}
},
legend : {
visible : true
},
title : {
visible : true,
text : titletext
},
tooltip: {
"visible": true
}
});
oVizFrame.setDataset(oDataset);
oVizFrame.setModel(amModel);
var feedPrimaryValues = new sap.viz.ui5.controls.common.feeds.FeedItem({
'uid' : "valueAxis",
'type' : "Measure",
'values' : ["No of loads"]
}), feedregionColor = new sap.viz.ui5.controls.common.feeds.FeedItem({
'uid' : "color",
'type' : "Dimension",
'values' : ["item"]
}),feedAxisLabels = new sap.viz.ui5.controls.common.feeds.FeedItem({
"uid" : "categoryAxis",
"type" : "Dimension",
"values" : ["date"]
});
oVizFrame.addFeed(feedPrimaryValues);
oVizFrame.addFeed(feedAxisLabels);
oVizFrame.addFeed(feedregionColor);