Join us Dec. 16 for The Community Hour, our first global virtual User Group event!

How to set conditional colors in a Platform Analytics

vaibhavishi
Tera Contributor

I have a ServiceNow Platform Analytics Semi Donut visualization configured as:

  • Table: Task SLA
  • Metric: COUNT DISTINCT Task
  • Group by: Has breached

The chart correctly shows both true and false, but the colors are automatically assigned.

I need:

true (breached) = Red
false (not breached) = Green

Under Presentation > Colors, I only have options for Default, Color palette, and Fixed element color. How can I assign a specific color to each group-by value?

 

3 REPLIES 3

Dr Atul - LNG
Tera Patron
This video will demonstrate how to Use Charting Styling in the Platform Analytics. * It brings value to that need where you want to visualize your data, to make it more insightful by highlighting certain elements or adding more information. * A simple way to modify chart styling options you need ...

Prakash_lakka
Giga Contributor
StepActionDetail
1Navigate to Chart ColorsIn the Application Navigator, search for and go to Platform Analytics Administration > Color Settings > Chart Colors (or type sys_report_chart_color.list in the filter navigator) .
2Create mapping for trueClick New and configure a record :
• Name (Table): task_sla
• Element (Field): has_breached
• Value: true
• Color: Select/define your Red color.
3Create mapping for falseClick New again and configure :
• Name (Table): task_sla
• Element (Field): has_breached
• Value: false
• Color: Select/define your Green color.
4Configure the VisualizationOpen your Semi Donut visualization configuration:
• Go to Presentation > Colors.
• Set Color type to Fixed element color

HasanM
Kilo Sage

Hi @vaibhavishi 

You can do this with Fixed element colour. Steps:

  1. Go to All > Platform Analytics > Dashboards and open your dashboard.
  2. Click Edit (top right).
  3. Click your Semi Donut visualisation so the configuration panel opens on the right.
  4. Go to Presentation > Colours.
  5. Select Fixed element colour.
  6. The group-by values are listed separately. Set:
    true (breached) = Red
    false (not breached) = Green
  7. Click Apply, then Save the dashboard.

If true/false aren't listed in step 6, check that Group by = Has breached is applied and the chart has loaded data, then reopen Colours.

If this helps, please mark it as Helpful or Accept as Solution.