Skip to Content
0
Jul 18, 2016 at 01:19 PM

Change the legend value in sap vizframe

533 Views

Hi All,

I am yet stuck in another sap ui5 implementations of vizframe. I have a requirement to change the legend value for a stacked column chart of sap.viz libarary. Basically i have a json which is binded with the stacked column chart. For example, i have to display a timeline representation of some sales information. Input Json looks like this

[{date:20.10.2015,item:books,numbers:100},

{date:20.10.2015,item:notebooks,numbers:85},

{date:20.11.2015,item:Pens,numbers:700},

{date:20.11.2015,item:notebooks,numbers:65},

{date:20.12.2015,item:null,numbers:null}]

Now when i bind this json to the chart, in the legend there is No Value shown as one of the legends. So i need to find a way to show that 20.12.2015 has no items and number but still needs to be there since it is a timeline display, but without displaying No Value in the legend.

I looked into the getVizProperties() function in the vizframe control object but could not find a way to change the legend values. If anyone has possible suggestions or solution for this issue would be of great help. Thanks

Regards,

Abinash