tooltip border

Specifies the appearance of the tooltip's border.

Type: Object

Show Example:
jQuery

In this example, several options of the tooltip's border are changed.

<div id="bulletContainer" style="height:35px;max-width:300px;margin:0 auto;padding-top:65px;position:relative"></div>
$(function () {
    $("#bulletContainer").dxBullet({
        startScaleValue: 0,
        endScaleValue: 100,
        target: 85,
        value: 53,
        color: 'pink',
        tooltip: {
            border: {
                opacity: 0.8,
                width: 2,
                color: 'orchid'
            }
        }
    });
});

color

Specifies the color of the tooltip's border.

Type: String
Default Value: '#d3d3d3'

This option supports the following colors.

Show Example:
jQuery

In this example, the tooltip's border is colored in 'forestgreen'.

<div id="bulletContainer" style="height:35px;max-width:300px;margin:0 auto;padding-top:65px;position:relative"></div>
$(function () {
    $("#bulletContainer").dxBullet({
        startScaleValue: 0,
        endScaleValue: 100,
        target: 60,
        value: 50,
        color: 'olivedrab',
        tooltip: {
            border: {
                color: 'forestgreen'
            }
        }
    });
});

dashStyle

Specifies the dash style of the tooltip's border.

Type: String
Default Value: 'solid'
Accepted Values: 'solid' | 'longDash' | 'dash' | 'dot'

The following values are available.

  • solid
    Displays a solid, continuous line.
  • longDash
    Displays the border using long dashes.
  • dash
    Displays the border using dashes.
  • dot
    Displays the border using dots.
  • Any combination of 'longDash', 'dash' and 'dot'
    Displays the border by repeating a specified combination. For instance, 'dashdotdash'.
Show Example:
jQuery

In this example, the tooltip's border has the 'longDash' dash style.

<div id="bulletContainer" style="height:35px;max-width:300px;margin:0 auto;padding-top:65px;position:relative"></div>
$(function () {
    $("#bulletContainer").dxBullet({
        startScaleValue: 0,
        endScaleValue: 100,
        target: 65,
        value: 55,
        color: 'plum',
        tooltip: {
            border: {
                color: 'purple',
                dashStyle: 'longDash'
            }
        }
    });
});

opacity

Specifies the opacity of the tooltip's border.

Type: Number
Default Value: undefined

Show Example:
jQuery

In this example, the tooltip's border is displayed with a 0.5 opacity.

<div id="bulletContainer" style="height:35px;max-width:300px;margin:0 auto;padding-top:65px;position:relative"></div>
$(function () {
    $("#bulletContainer").dxBullet({
        startScaleValue: 0,
        endScaleValue: 100,
        target: 70,
        value: 85,
        color: 'deeppink',
        tooltip: {
            border: {
                color: 'violet',
                opacity: 0.5
            }
        }
    });
});

visible

Specifies whether the tooltip's border is visible or not.

Type: Boolean
Default Value: true

Show Example:
jQuery

Toggle the check box below to show/hide the tooltip's border. Hover over the bullet to see the changes.

<div id="bulletContainer" style="height:35px;max-width:300px;margin:0 auto;padding-top:65px;position:relative"></div>
<div id="checkboxContainer" style="height:20px;width:300px;margin:5px auto;text-align:center">
    <input type="checkbox" id="showTooltipBorderCheckbox" checked> Show the Tooltip's Border
</div>
$(function () {
    $("#bulletContainer").dxBullet({
        startScaleValue: 0,
        endScaleValue: 100,
        target: 43,
        value: 53,
        color: 'dodgerblue',
        tooltip: {
            border: {
                visible: true,
                color: 'blue'
            }
        }
    });

    $('#showTooltipBorderCheckbox').change(function () {
        var bullet = $('#bulletContainer').dxBullet('instance');
        bullet.option({
            tooltip: {
                border: { visible: this.checked }
            }
        });
    });
});

width

Specifies the width of the tooltip's border in pixels.

Type: Number
Default Value: 1

Show Example:
jQuery

In this example, tooltips have a 4-pixel border.

<div id="bulletContainer" style="height:35px;max-width:300px;margin:0 auto;padding-top:65px;position:relative"></div>
$(function () {
    $("#bulletContainer").dxBullet({
        startScaleValue: 0,
        endScaleValue: 100,
        target: 50,
        value: 61,
        color: 'lightgray',
        tooltip: {
            border: {
                width: 4
            }
        }
    });
});