SomaFM commercial free internet radio Custom colors (or defined colors) in charts in SSRS

Paul Sturm

My notebook of discovered facts

Custom colors (or defined colors) in charts in SSRS

I needed specific colors for specific values on a pie chart in SSRS. We were charting work requests in a month. Each job had one of four states: completed, missed, pending and due today.  I wanted to color code those values to dark green, red, lime and orange respectivly.  The existing color palette (and options) was not going to get it done.  Here is how I accomplished it:

 Chart properties > Data > element in values > Edit > Appearance tab > Series Style button > Fill tab > color function builder

=Switch(
Fields!Schedule_Status.Value = "completed", "dark green"
,
Fields!Schedule_Status.Value="missed","red"
,
Fields!Schedule_Status.Value="pending","lime"
,
Fields!Schedule_Status.Value="due today","orange" )

This will only work for a chart with known values but, in this case, I will never have anything more that four slices so defining each is simple enough.  If you don't know exactly all of your options, this technique isn't going to work for you.

Since the feeding query is a view into the tables which defines the status label (Schedule_Status in this case), I am thinking I might have the view supply the color as well so I don't have to change all the color properties in numerious reports if another state was added in the future like "missed > 30 days".  The color properties could then use the view to feed the color to the charts. hmm... 

I was making it far too hard by trying to follow the example in Microsofts white paper on custom paletts


Permalink | Comments (20) | Post RSSRSS comment feed

Comments

Festina Mens Sport 5

Saturday, August 08, 2009 8:49 PM

Do you accept guest posts? I would love to write couple articles here.

Diesel Dz9024

Monday, August 10, 2009 11:17 PM

I like how you write.Are you interesting in a part time writer job?

Citizen Mens Eco Drive

Thursday, August 13, 2009 2:58 AM

I think you have to improve a bit the design and usability of your blog.

Baume Mercier Classima

Friday, August 21, 2009 9:50 PM

I don't like your template but your posts are quite good so I will check back!

lave vaisselle couverts

Wednesday, October 21, 2009 8:03 AM

You are a very smart person!

Hame�ons

Friday, October 30, 2009 7:06 AM

What is captcha code?, pls provide me captcha code codes or plugin, Thanks in advance.

adventure game online

Thursday, December 17, 2009 7:02 PM

Hello, brilliant article! Pleasee continue this great work!!

adventure game online

Friday, December 18, 2009 6:04 AM

Hey blogger, thnxx for providing this article.. I found it excellent. Sincerely, Emily..

Ben

Sunday, December 20, 2009 12:27 PM

Howdy, I bumped into this web site by on accident when I was going through Google then I popped in to your web site. I have to say your site is really cool I like your theme! Currently  have much time at the moment to fully read through your sitebut I bookmarked it. I will be back in a day or two. Thanks for a great site.

Sandra

Monday, December 21, 2009 2:11 AM

Nice to see you make postings on this topic, I have to bookmark this website. Keep up the good work.

Jerry

Wednesday, December 23, 2009 3:39 AM

Valuable information and excellent design you got here! I would like to thank you for sharing your thoughts and time into the stuff you post!! Thumbs up

Connie Casano

Thursday, December 24, 2009 3:22 AM

It’s nice to finally find a site where the blogger knows what they are talking about.

Madalyn

Thursday, December 24, 2009 6:52 AM

You made numerous nice ideas there. I done a search on the issue and learnt nearly all peoples will agree with your blog.

Sport Video Clips

Saturday, December 26, 2009 4:56 AM

Your blog is great, and I like this post. I think I can find more useful information here. Thanks and keep it up!

Triston

Sunday, December 27, 2009 10:13 AM

We decided to tackle the subject of this because, till recently, it was so difficult to get sufficient, accurate information on the subject.

Vand Teren

Saturday, January 02, 2010 10:36 AM

Hi I was wondering what theme your are using for your blog? Looks awesome. Can you email me the link to the theme @ pammy27@yahoo.com thank you Smile

custom web design

Friday, January 15, 2010 5:33 PM

Hi admin, magnificent blog post! Pleasee please go on posting...

tetris

Thursday, February 04, 2010 12:48 AM

Can you please provide more points on this theme?? By the way your web site is eye-popping. Cheers!

dövme

Friday, February 05, 2010 7:43 PM

Amazing article.Ive bookmarked it already. Sincerely, John.

Danika

Tuesday, February 09, 2010 5:12 AM

You really make it seem so easy with your presentation but I find this topic to be really something which I think I would never understand. It seems too complicated and very broad for me. I am looking forward for your next post, I will try to get the hang of it!

Comments are closed