The Trellis Chart currently in the Visualization Bundle is not able to remove empty charts.
When for example, I use Set Analysis, to show certain values for a dimension I would like to see empty charts. There is one 3rd Party extension that does exactly what I'm looking for and that is https://github.com/miclae76/trellis-chart.
It only shows values that are related to the selection that is made.
For example, I create a bar chart with sales by Product Category. Now my Trellis Chart shows all Product Sub Categories related to the Product Category selected. Unfortunately the current Trellis Chart shows charts for all Product Sub Categories and Product Sub Categories not belonging to a selected Product Category are empty.
Thank you for your feedback on ways to improve our product. While this is something we understand would be useful, it's not on the short-term roadmap. Please continue to show your support for this idea.
The current behavior is by design, the trellis container is created by a 3rd party and is part of the visualization bundle, when bringing in objects we choose not to change the basic functions. That said we may try change it in the future, either in the object or creating a new container.
I looked at the code, and realized that the extension simply does not react to any changes in the user selection state. This means the Object is not rerendered when a selection is done on the Trellis dimension.
I just added a 2 "watch" functions and removed the strange SET ANALYSIS {1} selection from the Hypercube Definition, which could be another reason why always all dimensions are shown.
I guess there is a smarter solution than that, but this would be a huge improvment to the trellis object. See how beautiful the extension now works.
Can you please push R&D so this fix is included in the next Qlik Sense Release?
@rva_heldendaten thanks for your contribution. Any change needs to non-breaking, so there has to be a switch for any new functionality. Also the number of watch statements is less ideal, increases the risk of race conditions. The change throws exception in Firefox.
@Patric_Nordstrom : Thanks for your feedback. For sure my solution is not perfect, I am not a Javascript developer. I just invested one hour for a proof of concept how the Trellis could become a powerful Qlik Object.
If it's possible for me to get Trellis working in 1 hour, I guess for your colleagues in R&D this should be easily possible to provide a proper version. So let's see my Github pull request rather as push forward into the right direction. I hope with my input you can put this feature request on the short term roadmap.
Technical Feedback: correct, I need 2 watches because I don't know the correct way to watch any "Selection State" change. If you know how this is possible, please post it to my pull request. According to the "switch for new functionality" I guess for 90% of all Qlik Sense Users my behavior will be the new default. Qlik always prays"Green-White-Gray", but the current Trellis Clntainer does not behave this way. Maybe Qlik R&D can add the switch for provide backward compability. Maybe something we can discuss in the Github pull request as well.
Yes, even when combing 47 and 50 the change still causes exceptions in Firefox.
When suggesting changes, any fix must be non-breaking and well tested. It' impossible to include something that breaks the behavior on a supported browser. Much care has to be taken, QS runs on many compositions and there are many use cases to verify on.
Following up on this thread as well -- is there any way to even let the dim leverage the getfieldselections function to intelligently return only those dim values that are selected by the user? Trellis functionality is great to display whole portfolio of stores in single viz/sheet, but NEED the ability to allow selections. Any update from product dev on if this will be added in the future? I'm new to Qlik and this was basic/seamless functionality in other analytics products. @Patric_Nordstrom