cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

How to add / remove dimensions in Tree Map in SAC using Analytics Designer ?

meghomallar_das
Participant
0 Kudos
850

Hello All,

I am using a TREE MAP in SAP analytics cloud. I need to remove / add dimensions to the tree map using Analytics Designer.

I just need to know the FEED value I have to use to update the Dimension.

Thanks in advance,

Megh

View Entire Topic
saurabh_sonawane
Active Contributor

Hi

Please use FEED.TITLE

Thanks,

Saurabh S.

meghomallar_das
Participant
0 Kudos

Hello Saurabh,

Thanks for your response.

I have written the below code in Dropdown_onSelect()

if(this.getSelectedKey()==='COUNTRY')

{

Chart_Country_View.removeDimension('REGION', Feed.Title);

Chart_Country_View.addDimension('COUNTRY', Feed.Title);

}

else if(this.getSelectedKey()==='REGION')

{

Chart_Country_View.removeDimension('COUNTRY', Feed.Title);

Chart_Country_View.addDimension('REGION', Feed.Title);

}

But still it is throwing error "Something went wrong. The system could not add the dimension"

Regards,

Megh

saurabh_sonawane
Active Contributor

Hi

1. Can you please add a console.log and check where it is getting failed in which if condition

2. After you run the application try to change the drop down, and check the code again.

I tried from my side also it is working fine,

the above error will come when we are unable to remove the dimension from the chart and we are trying to add new dimension in the same place.

Thanks,
Saurabh S.

meghomallar_das
Participant

Hi Saurabh,

Thanks a lot the solution worked. Actually, there was a small technical fault due to which it didnt worked the last time.

Thanks once again. 🙂

Regards,

Megh