scale.lineObject

Configures the axis line.

Example

<div id="gauge"></div>
<script>
$("#gauge").kendoLinearGauge({
    pointer: {
        value: 30
    },
    scale: {
        min: 0,
        max: 50,
        line: {
            color: "#2196f3",
            width: 2,
            visible: true
        }
    }
});
</script>

scale.line.colorString(default: "black")

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

Example

<div id="gauge"></div>
<script>
$("#gauge").kendoLinearGauge({
    pointer: {
        value: 30
    },
    scale: {
        min: 0,
        max: 50,
        line: {
            color: "#4caf50"
        }
    }
});
</script>

scale.line.dashTypeString(default: "solid")

The dash type of the line.

Example

<div id="gauge"></div>
<script>
$("#gauge").kendoLinearGauge({
    pointer: {
        value: 30
    },
    scale: {
        min: 0,
        max: 50,
        line: {
            color: "#ff9800",
            dashType: "dash"
        }
    }
});
</script>

"solid"

Specifies a solid line.

"dot"

Specifies a line consisting of dots.

"dash"

Specifies a line consisting of dashes.

"longDash"

Specifies a line consisting of a repeating pattern of long-dash.

"dashDot"

Specifies a line consisting of a repeating pattern of dash-dot.

"longDashDot"

Specifies a line consisting of a repeating pattern of long-dash-dot.

"longDashDotDot"

Specifies a line consisting of a repeating pattern of long-dash-dot-dot.

scale.line.visibleBoolean(default: true)

The visibility of the lines.

Example

<div id="gauge"></div>
<script>
$("#gauge").kendoLinearGauge({
    pointer: {
        value: 30
    },
    scale: {
        min: 0,
        max: 50,
        line: {
            visible: false
        }
    }
});
</script>

scale.line.widthNumber(default: 1)

The width of the line..

Example

<div id="gauge"></div>
<script>
$("#gauge").kendoLinearGauge({
    pointer: {
        value: 30
    },
    scale: {
        min: 0,
        max: 50,
        line: {
            color: "#9c27b0",
            width: 3
        }
    }
});
</script>