Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
punitpopli
Specialist
Specialist

Dynamically placement of chart objects

Hi Experts,

Just came across a requirement where a user wants all the charts in the application should be placed dynamically based on a selection through a selector.


Consider I have 10 charts in a QVW and we can place it one besides/below the other but to display them dynamically on user selection can be a bit difficult, as we cant input the X and Y position of a chart dynamically (based on my knowledge)


I know this can be done by macro, but will impact the application performance.


Had anyone implement something like this in the past?

Please share your views.


Thanks in advance

-Punit

10 Replies
vardhancse
Specialist III
Specialist III

Hi Punit,

Charts/Objects hide & show can be done. But your requirement was little different.

What does that filters have?

Pulkit_Thukral
Partner - Creator II
Partner - Creator II

Try using allow minimize(Check Auto minimize option) and allow maximize buttons under the caption tab.

vardhancse
Specialist III
Specialist III

Hi,

I think the position should be dynamic location.

If we minimize then the position will be of static right?

avinashelite

If you have limited set of charts then you could try writing a macro for the same other than that we don't have default way to achieve the same

punitpopli
Specialist
Specialist
Author

yes, I am aware that Macro can be used to achieve the functionality but just wanted to know if their is any other option to achieve the same

avinashelite

If you have few fixed positions then you could try with the Hide/show if you need complete dynamic positions as per the user then macro is the only option .

Hope you got the answers

marcus_sommer

Aren't there too many possibilities in the combination of objects and their position you could use the above mentioned approach to control their visibility. Otherwise you will need a macro-solution although it's thinkable to get a similar solution with an document extension or by manipulating various of the qlik js-scripts which are used for displaying the objects within the access point - whereby both "alternatives" would be a lot complexer than a macro-solution.

Beside these complex and expensive approaches - why not just using drag'n drop of the objects?

- Marcus

punitpopli
Specialist
Specialist
Author

Thanks Marcus for your reply

by Drag n drop did you mean allow user to create a chart by their own?

by adding a sheet object on access point and follow from their?

marcus_sommer

No, I meant the ability to move and size objects with the mouse if you goes on the title, a column-header or a border which switched the cursor to an arrow and enabled you to adjust them. This is a default-feature and is independent from the allowance (qmc-option by each application controlable by users or user-groups) to add new objects or the change of properties from existing objects.

- Marcus