tooltip font

Specifies font options for the text displayed by tooltips.

Type: Object

Show Example:
jQuery

In this example, several font options of tooltips are changed. Hover over any bar to see its tooltip.

<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 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 text displayed by tooltips is colored in 'lightsalmon'. Hover over any bar to see its tooltip.

<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: 'lightsalmon'
            }
        }
    });
});

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 font family of tooltips is changed. Hover over any bar to see its tooltip.

<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'
            }
        }
    });
});

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 font size of tooltips is changed to 30. Hover over any bar to see its tooltip.

<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 for the text displayed by tooltips.

Type: Number
Default Value: 400

Show Example:
jQuery

In this example, the font weight of tooltips is changed to 400. Hover over any bar to see its tooltip.

<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: 400
            }
        }
    });
});