Skip to Content

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

Jan 23 at 09:29 AM


avatar image

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:,js,output

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

avatar image
Former Member
Jan 25 at 07:16 AM
10 |10000 characters needed characters left characters exceeded