Solved

Dynamically Move Chart Legend in SSSRS

Posted on 2010-11-19
4
353 Views
Last Modified: 2012-05-10
I am building a report in SQL Reporting Services that has a line chart in it.  Currently, I have the legend in the chart area (upper-left corner) where it is out of the way most of the time, but occasionaly covers some of the lines.  Is there a way that I can move the legend dynamically if it covers up the lines in the line chart?  
thanks!
0
Comment
Question by:badrhino
  • 2
  • 2
4 Comments
 
LVL 4

Expert Comment

by:BostonMA
ID: 34175041
I would probably create a copy of the Chart and have one version with the legend in one spot, and the other with the legend in a different spot.  Then put one chart exactly over the other chart and add a parameter to toggle the visibility of the one you want.  Thats the easiest solution.
0
 
LVL 1

Author Comment

by:badrhino
ID: 34175363
Thanks for your reply.  Your suggestion won't workin this case because I've got this report set up on a subscription and the report is generated and then exported to a file share as an image were people access this via simple html tags.  
0
 
LVL 4

Accepted Solution

by:
BostonMA earned 500 total points
ID: 34175395
Then there is no way to accomplish exactly what you are asking.  

If you want the chart to look reasonable and complete this task so you can move on you need to set a trigger point so that the report knows when to put the legend on the bottom or on the right. If you notice that whenever the count of sales > 100 that the legend looks best on the bottom, then you could set the visibility to toggle the chart with the legend on the bottom only when sales are greater than 100.
0
 
LVL 1

Author Comment

by:badrhino
ID: 34175461
This may give me something to work with--If not for this project perhaps for others in the future.  Thanks for the response.
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

How to use Variables  and Custom code in SSRS report and Assembly reference to use compile shared code in SSRS. Its big question for all who are working with SSRS. It is easy to create assembly and refer in SSRS report, still there are some steps…
Introduction In the following article I’ll be discussing and demonstrating several different ways of how images can be put on a report. I’m using SQL Server Reporting Services 2008 R2 CTP, more precisely version 10.50.1352.12, but the methods ex…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

706 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now