Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Custom Chart Colors not showing up in reports

pkhoan
Giga Contributor

Hello,

I followed this wiki to specify custom colors for my reports: Configuring Chart Colors - ServiceNow Wiki however, the reports are still using the default report colors.

The report is pulling off of the Timecard table and I want to specify a color for each Skill, which is my Element for the Chart Color. I have tried selecting just the Color Name from the reference list with the Color field empty, I have tried entering just the hexadecimal value for the Color field leaving the Color Name field empty, and I have tried entering values for both the Color and Color Name fields but none of these changed the report colors.

Does it matter which field, Color or Color Name, I use to specify the color?

Below is the xml snippet of the Timecard form showing the field that I want to specify the color. Do I enter the display_value or the sys_id for the Value field in the Chart Color form?

<u_tgs_skill display_value="Prime Activities - Developer - Meetings">28e6cb52131b96808d7633b32244b0ca</u_tgs_skill>

Lastly, is there a system configuration I need to change to tell ServiceNow not to use the default colors?

Thanks for any input/advice!

1 ACCEPTED SOLUTION

So I set the color using the Color Name field and the Value using the sys_id. I realized that I hadn't changed my report settings to 'use chart colors (if defined)'. Once I did this, the custom colors work for my Skills Reference field


View solution in original post

6 REPLIES 6

Chuck Tomasi
Tera Patron

Hi Phuc,



After doing some experimenting, it appears that this doesn't work well for reference fields. I don't see any examples in the sample data for reference fields either so I have to wonder if anyone before you has tried. I've had the same experience as you.



There is nothing about this in the documentation so it feels like a bug to me. You might want to reach out to customer support and see what they have to say. If they have a quick fix, don't forget to post it back here.



Thanks


Thank-you so much for that info. I'll ask customer support and will post back what they say.


So I set the color using the Color Name field and the Value using the sys_id. I realized that I hadn't changed my report settings to 'use chart colors (if defined)'. Once I did this, the custom colors work for my Skills Reference field


Nice. I knew it had to be something simple. Where did you see that setting? (got a screen shot?)