# How to Change Bar Chart Colors Based on Threshold in Dynatrace?

**URL:** <https://community.dynatrace.com/t/how-to-change-bar-chart-colors-based-on-threshold-in-dynatrace/49888>\
**Category:** Dashboarding\
**Tags:** dashboards, charts\
**Created:** [January 23, 2025, 2:20pm UTC](https://community.dynatrace.com/t/how-to-change-bar-chart-colors-based-on-threshold-in-dynatrace/49888 "2025-01-23T14:20:24Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![GerardoAud](https://avatars.discourse-cdn.com/v4/letter/g/90db22/32.png) [@GerardoAud](https://community.dynatrace.com/u/GerardoAud)\
**Post date:** [January 23, 2025, 2:20pm UTC](https://community.dynatrace.com/t/how-to-change-bar-chart-colors-based-on-threshold-in-dynatrace/49888/1 "2025-01-23T14:20:24Z")

</div>

I am working with a bar chart in Dynatrace that visualizes storage capacity usage.

Currently, I have split the bar into two colors:

- **Orange** : Refers to “Total Capacity Used.”
- **Green** : Refers to “Total Capacity Available.”

Now, I would like to enhance the visualization by changing the color.

Specifically:

- If the **“Total Capacity Used”** exceeds a certain threshold, the bar should change to a defined color (e.g., red) instead of staying orange.
- If the value is below the threshold, the bar should retain its color.

Is there a way to configure this behavior in Dynatrace? Could you provide a step-by-step guide or direct me to relevant documentation?

 ![Screenshot 2025-01-23 151734.png](https://global.discourse-cdn.com/dynatrace/original/2X/a/ada64604a263c35e08387f683fb77585916d5ecf.png)

---

<div class="post-metadata">

**Author:** ![Taylor-Sanchez](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/taylor-sanchez/32/8756_2.png) [@Taylor-Sanchez](https://community.dynatrace.com/u/Taylor-Sanchez)\
**Post date:** [January 23, 2025, 6:15pm UTC](https://community.dynatrace.com/t/how-to-change-bar-chart-colors-based-on-threshold-in-dynatrace/49888/2 "2025-01-23T18:15:27Z")

</div>

Hi&nbsp;[@GerardoAud](https://community.dynatrace.com/user/74276)&nbsp;,

As far as I know, Dynatrace doesn’t currently support dynamic configuration of colors in dashboards that are affected by thresholds. However 2 suggestions here:

1) This could be a potential product suggestion. You can make a community post suggesting this as a product idea.

2)&nbsp;_If_&nbsp;this is not of importance in terms of a visualization, you can use anomaly detectors & problem notifications to alert on these thresholds instead.

---

<div class="post-metadata">

**Author:** ![Taylor-Sanchez](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/taylor-sanchez/32/8756_2.png) [@Taylor-Sanchez](https://community.dynatrace.com/u/Taylor-Sanchez)\
**Post date:** [January 23, 2025, 6:29pm UTC](https://community.dynatrace.com/t/how-to-change-bar-chart-colors-based-on-threshold-in-dynatrace/49888/3 "2025-01-23T18:29:13Z")

</div>

Unless - and for clarification, you’re not just talking about the refresh of the page to reflect these colors? Since Dynatrace does support the threshold for the multi-range, the colors should change when they enter the threshold.
