Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Changing type of graph according to user selection.

Hello.

I have a user that has a particular filling about how the data is displayed, and although he is right in his points, we couldn't make change his mind about how to see it.

So we need a way to show a pie, or a bar line, if the quantity of periods (in time) is one, for the pie, and more than one, for the lines.

Is there an easy way to accomplish this, that not involved showing or not showing the chart one behind the other. The charts are inside a container, and this will make us throw it away, and besides maintenance will be more complicate since we will have two objects to mantain...

Thanks.

9 Replies
Anonymous
Not applicable
Author

Can't you just allow fast chart type change?  Let them see the data they way they want.

Regards,

Michael

Not applicable
Author

The user want it to do it by the application itself, not by himself. Your answer is totally rigth, but I want to know is there any way to do it besides that.

Anonymous
Not applicable
Author

I thought user could handle one click to change the type...
OK, you can use section access to identify the current user, and based on the current user show one chart or another utilizing conditional show.

Not applicable
Author

Have you tried asking him to use the Fast Type Change (on the General tab) where the user has the flexibility to change the type of graph being displayed. Not sure if this will work if charts are within a container though.

johnca
Specialist
Specialist

I think each chart, even in a container, has the Show-Conditional option. Create both charts and set the field to "OSUser()='<specialusername>'" for the special user, and "OSUser()<>'<specialusername>'" for the others.

Not applicable
Author

The main problem here is that the container, shows the caption even is the object is conditionally opted out. So there is no way in using a conditional to make it work.

I'm thinking about ideas I saw on other software, that according to the data they show the better type of graph.

Since there is a time slice, a line is better. But when you select only one period, the line is just a point, and a pie is better in that case. The pie, if you select several periods, is uselles.

Anonymous
Not applicable
Author

I'd use line chart within container, and when one time point is selected, show pie and hide the whole container.
(just a thought)

Not applicable
Author

That's is a good idea, but like my original post said, it would make a little harder to maintain (dev has to remember that they are two graphs to maintain, in the same position, one hides behind the other)...

I think we need a new functionality here...

Anonymous
Not applicable
Author

Well, the simpliest way is the fast type change.  Unlikely you can use it anyway because you also have to remove time dimension in pie.

And, I don't suggest to "one hides behind the other" but use conditional show.  You right that it is an extra chart.

Regards,

Michael