Select to view content in your preferred language

Potential bug: Unable to set thresholds in gauges

279
4
Jump to solution
03-27-2025 09:36 AM
mmoeen
by
Emerging Contributor

Hi,

I've been trying to set specific percentage thresholds on the gauges in my dashboard, and am aware that this functionality exists, but I believe I'm seeing a bug. I've tried adding them in different ways but somehow continue to encounter a selection or color specification that leads to the whole gauge showing "error."

Repro steps:

1. Open ArcGIS Dashboards

2. Go to "Gauge"--> "Band"--> "Band colors"

3. Click "+Threshold" 4 or 5 times

4. Start specifying a percentage in the first box, then go to select a color and observe.

5. The minute I try to choose a color, the gauge stops displaying and shows Error instead.

 

I'd really appreciate if someone could look into this and get the bug fixes as soon as possible. Thank you in advance!

 

1 Solution

Accepted Solutions
DougCainSCE
New Contributor

As of early April, 2025, this appears to be an issue. I think this may have been introduced in the Feb 2025 ArcGIS Online update.

We saw this same issue when creating gauge on a dashboard, with the gauge showing only "error."

On existing dashboards, gauges were working as expected, but if we changed the Band color of the active threshold, that is, the one that includes the current value, the gauge would immediately break.

Looking at the dashboard in ArcGIS Online Assistant, viewing the JSON, it looks like a change was made as to how the colors are being stored for the various thresholds, from hex code to RGB.

For the existing gauge, the previous hex code json:

"colorThresholds": [
    {
        "threshold": 0.3,
        "color": "#ff0000"
    },
    {
        "threshold": 0.6,
        "color": "#ffee00"
    },
    {
        "threshold": 0.99,
        "color": "#26ff00"
    }
]

and when we change the color for the active threshold (the 2nd threshold) and save, the json then looks like this:

"colorThresholds": [
    {
        "threshold": 0.3,
        "color": "#ff0000"
    },
    {
        "threshold": 0.6,
        "color": [
                     255,
                     187,
                     0,
                     255
                 ]
    },
    {
        "threshold": 0.99,
        "color": "#26ff00"
    }
]

Using ArcGIS Online Assistant, you can change the element to use a hex code and the gauge will work. We replaced the RGB element in the colorThresholds element with a hex code value for the same color. This can also be done on a new gauge after saving the dashboard and modifying the colorThresholds section in ArcGIS Online Assistant. As you configure the gauge, grab the hex codes of the Band colors to apply over in ArcGIS Online Assisant.

In this example, replace [255, 187, 0, 255] with "#ffee00" (include the double quotes for the hex code)

Of course, everytime you want to adjust the color, you'll need to do this operation in ArcGIS Online Assistant as a followup.

View solution in original post

4 Replies
DougCainSCE
New Contributor

As of early April, 2025, this appears to be an issue. I think this may have been introduced in the Feb 2025 ArcGIS Online update.

We saw this same issue when creating gauge on a dashboard, with the gauge showing only "error."

On existing dashboards, gauges were working as expected, but if we changed the Band color of the active threshold, that is, the one that includes the current value, the gauge would immediately break.

Looking at the dashboard in ArcGIS Online Assistant, viewing the JSON, it looks like a change was made as to how the colors are being stored for the various thresholds, from hex code to RGB.

For the existing gauge, the previous hex code json:

"colorThresholds": [
    {
        "threshold": 0.3,
        "color": "#ff0000"
    },
    {
        "threshold": 0.6,
        "color": "#ffee00"
    },
    {
        "threshold": 0.99,
        "color": "#26ff00"
    }
]

and when we change the color for the active threshold (the 2nd threshold) and save, the json then looks like this:

"colorThresholds": [
    {
        "threshold": 0.3,
        "color": "#ff0000"
    },
    {
        "threshold": 0.6,
        "color": [
                     255,
                     187,
                     0,
                     255
                 ]
    },
    {
        "threshold": 0.99,
        "color": "#26ff00"
    }
]

Using ArcGIS Online Assistant, you can change the element to use a hex code and the gauge will work. We replaced the RGB element in the colorThresholds element with a hex code value for the same color. This can also be done on a new gauge after saving the dashboard and modifying the colorThresholds section in ArcGIS Online Assistant. As you configure the gauge, grab the hex codes of the Band colors to apply over in ArcGIS Online Assisant.

In this example, replace [255, 187, 0, 255] with "#ffee00" (include the double quotes for the hex code)

Of course, everytime you want to adjust the color, you'll need to do this operation in ArcGIS Online Assistant as a followup.

ThomasEdinger
Emerging Contributor

This is BIG issue; I have the same problem with the gauge element and get an error. This didn't happen before the Feb release.  The Feb release caused a lot of issues.  These fixes need to happen sooner or will lose faith in the Esri support. These workarounds are too technical for trying to keep critical applications running.  These are not game apps.

mmoeen
by
Emerging Contributor

@ThomasEdinger Absolutely, I completely agree. If this issue came up after the Feb release, I'm surprised it still hasn't been caught and fixed yet. 

0 Kudos
mmoeen
by
Emerging Contributor

@DougCainSCE Amazing, thank you so much. That worked perfectly! 

0 Kudos