tooltip font

Specifies font options for the text displayed by the tooltip.

Type: Object

Show Example:
jQuery

In this example, several font options of the tooltip text are changed.

<div id="bulletContainer" style="height:30px;max-width:300px;margin:0 auto;margin-top:55px"></div>
$(function () {
    $("#bulletContainer").dxBullet({
        startScaleValue: 0,
        endScaleValue: 100,
        target: 68,
        value: 64,
        color: 'lightsalmon',
        tooltip: {
            color: 'seashell',
            font: {
                color: 'crimson',
                size: 10,
                family: 'Zapf-Chancery, cursive',
                opacity: 0.75,
                weight: 400
            }
        }
    });
})

color

Specifies a font color for the text displayed by the tooltip.

Type: String
Default Value: '#ffffff'

This option supports the following colors.

  • hexadecimal colors
  • RGB colors
  • RGBA colors (not supported in Internet Explorer 8)
  • predefined/cross-browser color names
  • predefined SVG colors (not supported in Internet Explorer 8)
Show Example:
jQuery

In this example, the color option of the tooltip text is changed to maroon.

<div id="bulletContainer" style="height:30px;max-width:300px;margin:0 auto;margin-top:55px"></div>
$(function () {
    $("#bulletContainer").dxBullet({
        startScaleValue: 0,
        endScaleValue: 100,
        target: 68,
        value: 41,
        color: 'lightpink',
        tooltip: {
            color: 'seashell',
            font: {
                color: 'maroon'
            }
        }
    });
})

family

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

Type: String
Default Value: 'Segoe UI'

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

Show Example:
jQuery

In this example, the family option of the tooltip text is changed.

<div id="bulletContainer" style="height:30px;max-width:300px;margin:0 auto;margin-top:55px"></div>
$(function () {
    $("#bulletContainer").dxBullet({
        startScaleValue: 0,
        endScaleValue: 100,
        target: 68,
        value: 64,
        color: 'burlywood',
        tooltip: {
            font: {
                family: 'Zapf-Chancery, cursive'
            }
        }
    });
})

opacity

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

Type: Number
Default Value: undefined

Show Example:
jQuery

In this example, the opacity option of the tooltip text is set to 0.75.

<div id="bulletContainer" style="height:30px;max-width:300px;margin:0 auto;margin-top:55px"></div>
$(function () {
    $("#bulletContainer").dxBullet({
        startScaleValue: 0,
        endScaleValue: 100,
        target: 68,
        value: 64,
        color: 'lightsteelblue',
        tooltip: {
            font: {
                opacity: 0.75
            }
        }
    });
})

size

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

Type: Number
Default Value: 12

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

Show Example:
jQuery

In this example, the size option of the tooltip text is changed to 15.

<div id="bulletContainer" style="height:30px;max-width:300px;margin:0 auto;margin-top:55px"></div>
$(function () {
    $("#bulletContainer").dxBullet({
        startScaleValue: 0,
        endScaleValue: 100,
        target: 98,
        value: 75,
        color: 'lightsalmon',
        tooltip: {
            font: {
                size: 15
            }
        }
    });
})

weight

Specifies a font weight for the text displayed by the tooltip.

Type: Number
Default Value: 200

Show Example:
jQuery

In this example, the weight option of the tooltip text is changed to 700.

<div id="bulletContainer" style="height:30px;max-width:300px;margin:0 auto;margin-top:55px"></div>
$(function () {
    $("#bulletContainer").dxBullet({
        startScaleValue: 0,
        endScaleValue: 100,
        target: 98,
        value: 75,
        color: 'mediumaquamarine',
        tooltip: {
            font: {
                weight: 700
            }
        }
    });
})