function updateProp(obj, option, val) {
    switch (option) {
      case "valueFontColor":
        if (!isHexColor(val)) {
          console.log(
            "* justgage: the updated valueFontColor value is not a valid hex color"
          );
          break;
        }

        obj.txtValue.attr({
          fill: val,
        });
        break;

      case "labelFontColor":
        if (!isHexColor(val)) {
          console.log(
            "* justgage: the updated labelFontColor value is not a valid hex color"
          );
          break;
        }

        obj.txtMin.attr({
          fill: val,
        });
        obj.txtMax.attr({
          fill: val,
        });
        obj.txtLabel.attr({
          fill: val,
        });

        break;

      default:
        console.log(
          `* justgage: "${option}" is not a supported update setting`
        );
    }
  }
Utility function to update properties to a JustGage object

@param obj {JustGage Object} JustGage object to apply the property update to
@param option {String} option name
@param val {String} option value