12 Replies Latest reply: Feb 2, 2018 12:54 PM by Richard Bartley RSS

    Qlik Sense Visualization API - How to set cell attributes

    Richard Bartley

      Hi everyone,

       

      Could anyone tell me how to use the setOptions method of the visualization API  (setOptions method ‒ Qlik Sense Developers) to set the attributes of a dimension?

       

      The following code can be used to change title, subtitle and footnote:

      app.visualization.get(strQID).then(function(vis){
       
        console.log('vis',vis);
      
        vis.setOptions(
        {
        //orientation:"vertical"
        title:"New title",
        subtitle:"New subtitle",
        footnote:"New footnote"
        });
      
      
      
      
      

       

      According to the help, I should be able to set all of these properties: http://help.qlik.com/en-US/sense-developer/September2017/Subsystems/APIs/Content/CapabilityAPIs/VisualizationAPI/pivottable-properties.htm

      , but the example is rather simplistic and doesn't cover how to interact with the attributes.

       

      Thanks in advance.