I am using OData webservice from ECC and displaying a VizChart based on the data received.
My Dataset is as follows
var oDataset = new sap.viz.ui5.data.FlattenedDataset("Ch_DataSet",{ dimensions: [{ name: "Period", value: "{Model_Hdr>Period}" }], measures: [//{ // name: 'Amount', // value: '{Model_Hdr>Amount}' //}, { name: 'TotItms', value: '{Model_Hdr>TotItms}', displayValue: 'Tot Qty' }, { name: 'DelItms', value: '{Model_Hdr>DelItms}' displayValue: 'Delv Qty' }], });
I want to change the legend name for the measures which comes right now with default values "TotItms" and "DelItms". I have seen other SCN posts where just by changing the name property of measure , the legend name is getting updated. But when I try to write name: "Tot Qty" instead of "TotItms" , its gives me invalid data binding error. It works only when i give the name as "TotItms" (which is the name of the field coming from ODATA).
Regards
Amber