Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Save $650 on Qlik Connect, Dec 1 - 7, our lowest price of the year. Register with code CYBERWEEK: Register
cancel
Showing results for 
Search instead for 
Did you mean: 
Domski74
Contributor II
Contributor II

Visualization API create chart and assign to alternate state

Hi There

When using the capability apis and the visualization create method I cant see a way to assign the chart to an alternate state, how can I create a visualization and have it work off of an alternate state?

Thanks

Dom

Labels (2)
1 Reply
alex_colombo
Employee
Employee

Hi @Domski74 , please see below example for creating a visualization on the fly with an alternate state

app.visualization.create('barchart',["Dim1","=Sum(Expression1)"], {qStateName:"MyState"}).then(function(bar){
	bar.show('QV02');
});