Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Selections in Qlik Sense Mashup

Hi,

I am developing a Qlik Sense mashup with a pie chart and a table objects. My requirement is whenever i click a slice in pie chart the table with associated values should appear.

I have placed the pie chart inside a html div and enabled display

and

the table inside another html div and disabled dispaly initially.

What happens actually is the table with correct values is displayed when i click any slice of the pie chart but a table without any values is displayed when i click anywhere except the slice in the pie chart.

How to limit the selection/click event listener to the slices of the pie chart?

1 Solution

Accepted Solutions
Not applicable
Author

I would do that without a click event. You can create an hypercube with the values who are in the piechart, and in the callback display the table when one or more slices are selected.

function create()

  app.createCube({

//create hypercube

},

  function(u){

       var e=u.qHyperCube;

       var selec = e.qDimensionInfo[1].qStateCounts.qSelected;

       if(selec ==1)

       {

     //display the table

       }

   }

)};

}

View solution in original post

4 Replies
Not applicable
Author

Hello, you can show the table if just one slice is selected and hide the table if the user select more than one slice.

Not applicable
Author

Yes that can be done. But the issue i face is: The table without any values is displayed even i click on the title/legend of the pie chart. I want the table to be displayed only when i click on any slice of the pie chart.

Not applicable
Author

I would do that without a click event. You can create an hypercube with the values who are in the piechart, and in the callback display the table when one or more slices are selected.

function create()

  app.createCube({

//create hypercube

},

  function(u){

       var e=u.qHyperCube;

       var selec = e.qDimensionInfo[1].qStateCounts.qSelected;

       if(selec ==1)

       {

     //display the table

       }

   }

)};

}

Anonymous
Not applicable
Author

Could we use createCube to create pie chart in Qlik sense mashup?

Thanks!