Updating vis_config parameter using Javascript events

Adii
New Member

I am building a web application using ReactJS and I am able to embed looks using SSO embedding & also able to update filters using javascript events i.e ‘look:update:filters’. The example of which is as follows - 

document.getElementById("looker").contentWindow.postMessage(

JSON.stringify({

type: "look:filters:update", 

filters: {

"team": "1234", 

},

}),

"https://looker.instance.looker.com" 

);

On similar grounds, I want to update the type of visualization using the ‘vis_config’ parameter on the click of a button on my web application.

Is there a way this can be done? Please let me know. 

0 0 122