Skip to Content

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

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Jan 25 at 07:16 AM
    Add comment
    10|10000 characters needed characters exceeded