tooltip font

Specifies the font of the text displayed by a tooltip.

Type: Object

Show Example:
jQuery

In this example, the font of the tooltip's text is changed.

<div id="circularGaugeContainer" style="height:400px;max-width:400px;margin:0px auto"></div>
$(function () {
    $('#circularGaugeContainer').dxCircularGauge({
        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 the font color of the text displayed by a tooltip.

Type: String
Default Value: '#232323'

This option supports the following colors.

Show Example:
jQuery

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

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

family

Specifies the font family of the text displayed by a tooltip.

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 font family of the tooltip's text is changed.

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

opacity

Specifies the font opacity of the text displayed by a tooltip.

Type: Number
Default Value: undefined

Show Example:
jQuery

In this example, the tooltip text's opacity option is set to 0.5.

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

size

Specifies the font size of the text displayed by a tooltip.

Type: Number|String
Default Value: 12

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

Show Example:
jQuery

In this example, the font size of the tooltip's text is increased to 30.

<div id="circularGaugeContainer" style="height:400px;max-width:400px;margin:0px auto"></div>
$(function () {
    $('#circularGaugeContainer').dxCircularGauge({
        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 of the text displayed by a tooltip.

Type: Number
Default Value: 400

Show Example:
jQuery

In this example, the font weight of the tooltip's text is changed to 700.

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