tooltip font

Specifies font options for the text displayed by tooltips.

Type: Object

Show Example:
jQuery

In this example, the tooltip font options are changed.

<div id="linearGaugeContainer" style="height:150px;max-width:700px;margin:0 auto"></div>
$(function () {
    $('#linearGaugeContainer').dxLinearGauge({
        rangeContainer: { backgroundColor: 'lightsteelblue' },
        scale: {
            startValue: 0,
            endValue: 100
        },
        valueIndicator: {
            type: 'rangeBar',
            color: 'blanchedalmond'
        },
        tooltip: {
            enabled: true,
            font: {
                color: 'deepskyblue',
                family: 'Zapf-Chancery, cursive',
                size: 20,
                weight: 700
            }
        },
        value: 42.73
    })
})

color

Specifies a font color for the text displayed by tooltips.

Type: String
Default Value: '#232323'

This option supports the following colors.

Show Example:
jQuery

In this example, the tooltip text is colored in mediumblue.

<div id="linearGaugeContainer" style="height:150px;max-width:700px;margin:0 auto"></div>
$(function () {
    $('#linearGaugeContainer').dxLinearGauge({
        rangeContainer: { backgroundColor: 'cadetblue' },
        scale: {
            startValue: 0,
            endValue: 100
        },
        valueIndicator: {
            type: 'rangeBar',
            color: 'mediumaquamarine'
        },
        tooltip: {
            enabled: true,
            font: {
                color: 'mediumblue'
            }
        },
        value: 58
    })
})

family

Specifies a font family for the text displayed by tooltips.

Type: String
Default Value: "'Segoe UI', 'Helvetica Neue', 'Trebuchet MS', Verdana"

For details on acceptable values, refer to the Font family article.

Show Example:
jQuery

In this example, the tooltip font family is changed.

<div id="linearGaugeContainer" style="height:150px;max-width:700px;margin:0 auto"></div>
$(function () {
    $('#linearGaugeContainer').dxLinearGauge({
        rangeContainer: { backgroundColor: 'darkturquoise' },
        scale: {
            startValue: 0,
            endValue: 100
        },
        valueIndicator: {
            type: 'rangeBar',
            color: 'darkseagreen'
        },
        tooltip: {
            enabled: true,
            font: {
                family: 'Zapf-Chancery, cursive'
            }
        },
        value: 15.73
    })
})

size

Specifies a font size for the text displayed by tooltips.

Type: Number|String
Default Value: 12

For details on acceptable values, refer to the Font size article.

Show Example:
jQuery

In this example, the tooltip font size is increased to 30.

<div id="linearGaugeContainer" style="height:150px;max-width:700px;margin:0 auto"></div>
$(function () {
    $('#linearGaugeContainer').dxLinearGauge({
        rangeContainer: { backgroundColor: 'sandybrown' },
        scale: {
            startValue: 0,
            endValue: 100
        },
        valueIndicator: {
            type: 'rangeBar',
            color: 'tan'
        },
        tooltip: {
            enabled: true,
            font: {
                size: 30
            }
        },
        value: 81.42
    })
})

weight

Specifies the font weight for the text displayed by tooltips.

Type: Number
Default Value: 400

Show Example:
jQuery

In this example, the tooltip font weight is changed to 700.

<div id="linearGaugeContainer" style="height:150px;max-width:700px;margin:0 auto"></div>
$(function () {
    $('#linearGaugeContainer').dxLinearGauge({
        rangeContainer: { backgroundColor: 'palevioletred' },
        scale: {
            startValue: 0,
            endValue: 100
        },
        valueIndicator: {
            type: 'rangeBar',
            color: 'pink'
        },
        tooltip: {
            enabled: true,
            font: {
                weight: 700
            }
        },
        value: 75.43
    })
})