Colour of asset does not change although I set ranges

Hi, my manager_config.json looks like

  "pages": {
    "map": {
      "markers": {
        "ThingAsset": {
          "attributeName": "timeSinceLastValue",
          "showLabel": true,
          "showUnits": true,
          "colours": {
            "type": "range",
            "ranges": [
              {
                "min": 0,
                "max": 5,
                "colour": "39B54A"
              },
              {
                "min": 6,
                "max": 7,
                "colour": "F7931E"
              },
              {
                "min": 8,
                "max": 9,
                "colour": "C1272D"
              }
            ]
          }
        }
      }
    }
  }

Unfortunately it does not change the colour when the value of timeSinceLastValue comes to 6 or 8, it always has the same colour. Does someone know how to fix this?

Hi Hardy,

Try this:

"pages": {
    "map": {
      "markers": {
        "ThingAsset": {
          "attributeName": "timeSinceLastValue",
          "showLabel": true,
          "showUnits": true,
          "colours": {
            "type": "range",
            "ranges": [
              {
                "min": 8,
                "colour": "C1272D"
              },
              {
                "min": 6,
                "colour": "F7931E"
              },
              {
                "min": 0,
                "colour": "39B54A"
              }
            ]
          }
        }
      }
    }
  }

We should fix it so the order isn’t important. Also, I need to update the wiki.

Don

The order isn’t important anymore if you pull the latest version.

To clarify, min is used instead of max now.

Thanks, works perfectly!