gaugeArea.background String(default: "white")

The background of the gauge area. Any valid CSS color string will work here, including hex and rgb.

Example - set gaugeArea background color

<div id="gauge-container">
  <div id="gauge"></div>
</div>

<script>
  $(function() {
    var value = $("#gauge-value").val();
    $("#gauge").kendoLinearGauge({
      pointer: {
        value: 28
      },
      gaugeArea: {
        background: "#c7d6d1",
      },
      scale: {
        majorUnit: 20,
        minorUnit: 2,
        min: -40,
        max: 60,
        vertical: true,
        ranges: [
          {
            from: -40,
            to: -20,
            color: "#2798df"
          }
        ]
      }
    });
  });
</script>

<style>
  #gauge-container {
    text-align: center;
    margin: 0 auto;
    background-size: contain;
    padding: 18px;
    width: 300px;
    height: 300px;
  }

  #gauge {
    height: 100%;
    display: inline-block;
    *display: inline;
    zoom: 1;
  }
</style>
In this article