Hi ,
Please help me out to correct this error. I am getting [50053] - Incomplete dimensions binding .
here is my code to fetch data from mysql. (it is fetching correctly) recived json data =
{"Details":[{"skill":"ABAP","count":"3"},{"skill":"BW","count":"2"},{"skill":"HANA","count":"1"},{"skill":"MEANSTACK","count":"1"},{"skill":"SAPUI5","count":"1"}]}
chart generating vizframe code =
updateChart : function(){
$.ajax({
type:"post",
dataType:"json",
async:false,
url:"http://localhost:8080/U-Plan/GetCompanyOverview",
success:function(data)
{
alert('success data');
var oModel = new sap.ui.model.json.JSONModel(data);
var oDataset = new sap.viz.ui5.data.FlattenedDataset({
'dimensions' : [ {
'name' : 'skill',
'value' : "{skill}"
} ],
'measures' : [
{
'name' : 'count',
'value' : '{count}'
} ],
'data' : {
'path' : "/Details"
}
});
var oVizFrame = sap.ui.getCore().byId("idoVizFrame1");
oVizFrame.setDataset(oDataset);
oVizFrame.setModel(oModel);
// set feeds
var feedPrimaryValues = new sap.viz.ui5.controls.common.feeds.FeedItem(
{
'uid' : "primaryValues",
'type' : "Measure",
'values' : [ "Value" ]
}), feedAxisLabels = new sap.viz.ui5.controls.common.feeds.FeedItem(
{
'uid' : "axisLabels",
'type' : "Dimension",
'values' : [ "Category" ]
});
oVizFrame.addFeed(feedPrimaryValues);
oVizFrame.addFeed(feedAxisLabels);
oVizFrame.setVizType('column');
oVizFrame.setVizProperties({
title : {
visible : true,
text : "Employee vs Technology",
}
});
var chartPopover = new sap.viz.ui5.controls.Popover({});
chartPopover.connect(oVizFrame.getVizUid());
return;
},
error: function(data)
{
alert('fail.');
}
});
},
please find the attached error message...