Skip to Content
0
Jan 23, 2018 at 09:29 AM

sap.viz Pie chart: how to remove dimensions from legend ?

86 Views Last edit Jan 23, 2018 at 11:13 AM 2 rev

Hi All,

I have created a pie chart using sap viz library. My requirement is to add multiple properties from the data model in the tooltip when you hover over the section. I was able to achieve this by adding those properties as dimensions. However, the legend values also change (like AAA/India/10 - check the screenshot below) as I add further properties.

Is there any way I can omit the addition of the properties into the legend ?

Eg. in the screenshot above, the chart is between Store and Revenue. I want Country and Consumption to appear in tooltip but in the legend only Store name should appear.

jsBin sample code: http://jsbin.com/fevocidome/1/edit?html,js,output

Attachments