Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 589
  • Last Modified:

Matching the grid data row colors with the pie chart portion colors in SSRS

Assume that you have a list of countries with a value beside each of them.  Now build a pie chart.  Assume also that you will show the same data as a grid beside this pie chart.

How to color the the country row in the grid, and it's portion of the pie sclice with the same color?  If we were to show the results with a continent grouping countries within it, I would like to this within each group.

I appreciate your help.
0
tikkub
Asked:
tikkub
  • 2
1 Solution
 
ValentinoVBI ConsultantCommented:
It could be that ensuring both the pie and the table use the same sort order is sufficient, but I doubt it.  You're probably going to need to look into setting up custom coloring so that you have full control over what country gets what color.

Have a look at the following article to get you started, it explains how to set up custom coloring on the pie chart: http://www.experts-exchange.com/Microsoft/Development/MS-SQL-Server/MS-SQL_Reporting/A_1884-Pie-Chart-Techniques.html
0
 
tikkubAuthor Commented:
You are very good.  The article had the idea about using color in the dataset.  Ultimately, that is the cleanest way of doing it.  Being a data guy, I prefer putting things out using data set rather than writing code in the report.  I appreciate your help.
0
 
ValentinoVBI ConsultantCommented:
Thank you tikkub, and I totally agree with that! :)
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.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now