SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Toggle visibilty of Column Chart series


Toggle visibilty of Column Chart series

Author
Message
den.j.stevens
den.j.stevens
SSC Veteran
SSC Veteran (265 reputation)SSC Veteran (265 reputation)SSC Veteran (265 reputation)SSC Veteran (265 reputation)SSC Veteran (265 reputation)SSC Veteran (265 reputation)SSC Veteran (265 reputation)SSC Veteran (265 reputation)

Group: General Forum Members
Points: 265 Visits: 32
I'd like to give my end users a way to toggle the visibilty Series label in a column chart. I see where I can set Series Label Properties Visibilty according to an expression, but there's no option to set a toggle control. Can I do it through an expression and a text box? I didn't think there was a way to detect a click event.
Thom A
Thom A
SSC Guru
SSC Guru (80K reputation)SSC Guru (80K reputation)SSC Guru (80K reputation)SSC Guru (80K reputation)SSC Guru (80K reputation)SSC Guru (80K reputation)SSC Guru (80K reputation)SSC Guru (80K reputation)

Group: General Forum Members
Points: 80131 Visits: 20347
I'm pretty confident in saying that no, you can't do this in the report itself. In that, you can't have an clickable item that makes it switch "on" and "off". What you could do, however, is add a parameter to your report of a Boolean type. This will appear as a tick box to the user in the report parameter pane. If they want the label(s) not displayed all they have to tick the box and rerun the report.

To set this up, you'll need to create said parameter (I'll call it HideLabel). Then, on each of your labels on your charts you want to be able to toggle you'll need to go to the Visibility property and set it to hide/display using an expression. The expression you need is:
=Parameters!HideLabel.Value


This will tie the visibility to the tick box (True being Hide, and False being Display).


Thom~
Excuse my typos and sometimes awful grammar. My fingers work faster than my brain does :-P

Please always remember to encapsulate your code in IFCode Markup. For example [code=sql] [/code].
Click here to read Jeffs Guide on how to post SQL questions, and get swift and helpful answers from the community
den.j.stevens
den.j.stevens
SSC Veteran
SSC Veteran (265 reputation)SSC Veteran (265 reputation)SSC Veteran (265 reputation)SSC Veteran (265 reputation)SSC Veteran (265 reputation)SSC Veteran (265 reputation)SSC Veteran (265 reputation)SSC Veteran (265 reputation)

Group: General Forum Members
Points: 265 Visits: 32
Ah, I see. Thanks!
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum








































































































































































SQLServerCentral


Search