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="barGaugeContainer" style="height:400px;max-width:500px;margin:0px auto"></div>
$(function () {
    $("#barGaugeContainer").dxBarGauge({
        startValue: -50,
        endValue: 50,
        values: [-21.312, 14.833, -30.91, 45.2, 7],
        palette: 'Vintage',
        tooltip: {
            enabled: true,
            font: {
                color: 'midnightblue',
                size: 16,
                weight: 200,
                family: 'Segoe UI'
            }
        }
    });
});

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="barGaugeContainer" style="height:400px;max-width:500px;margin:0px auto"></div>
$(function () {
    $("#barGaugeContainer").dxBarGauge({
        startValue: -50,
        endValue: 50,
        values: [-21.312, 14.833, -30.91, 45.2, 7],
        palette: 'Bright',
        tooltip: {
            enabled: true,
            font: {
                color: 'mediumblue'
            }
        }
    });
});

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="barGaugeContainer" style="height:400px;max-width:500px;margin:0px auto"></div>
$(function () {
    $("#barGaugeContainer").dxBarGauge({
        startValue: -50,
        endValue: 50,
        values: [-21.312, 14.833, -30.91, 45.2, 7],
        palette: 'Vintage',
        tooltip: {
            enabled: true,
            font: {
                family: 'Helvetica Neue Light'
            }
        }
    });
});

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="barGaugeContainer" style="height:400px;max-width:500px;margin:0px auto"></div>
$(function () {
    $("#barGaugeContainer").dxBarGauge({
        startValue: -50,
        endValue: 50,
        values: [-21.312, 14.833, -30.91, 45.2, 7],
        palette: 'Bright',
        tooltip: {
            enabled: true,
            font: {
                opacity: 0.5
            }
        }
    });
});

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="barGaugeContainer" style="height:400px;max-width:500px;margin:0px auto"></div>
$(function () {
    $("#barGaugeContainer").dxBarGauge({
        startValue: -50,
        endValue: 50,
        values: [-21.312, 14.833, -30.91, 45.2, 7],
        palette: 'Vintage',
        tooltip: {
            enabled: true,
            font: {
                size: 30
            }
        }
    });
});

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="barGaugeContainer" style="height:400px;max-width:500px;margin:0px auto"></div>
$(function () {
    $("#barGaugeContainer").dxBarGauge({
        startValue: -50,
        endValue: 50,
        values: [-21.312, 14.833, -30.91, 45.2, 7],
        palette: 'Vintage',
        tooltip: {
            enabled: true,
            font: {
                weight: 700
            }
        }
    });
});