Solved

Dynamically Move Chart Legend in SSSRS

Posted on 2010-11-19
4
361 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Written by Valentino Vranken. Introduction: In a previous article (http://www.experts-exchange.com/articles/Microsoft/Development/MS-SQL-Server/MS-SQL_Reporting/Reporting-On-Data-From-Stored-Procedures-part-1.html) I announced that I would writ…
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…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …

856 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