tooltip shadow

Specifies options of the tooltip's shadow.

Type: Object

Show Example:
jQuery

This example shows how to configure the tooltip's shadow. Hover over any point to see a tooltip with custom shadow settings.

<div id="chartContainer" style="height:500px; max-width:700px; margin: 0 auto"></div>
var dataSource = [
    { year: 1950, europe: 546, americas: 332, africa: 227 },
    { year: 1960, europe: 605, americas: 417, africa: 283 },
    { year: 1970, europe: 656, americas: 513, africa: 361 },
    { year: 1980, europe: 694, americas: 614, africa: 471 },
    { year: 1990, europe: 721, americas: 721, africa: 623 },
    { year: 2000, europe: 730, americas: 836, africa: 797 },
    { year: 2010, europe: 728, americas: 935, africa: 982 }
];

$(function () {
    $("#chartContainer").dxChart({
        dataSource: dataSource,
        commonSeriesSettings: {
            argumentField: 'year',
            type: 'spline'
        },
        series: [
            { valueField: 'europe', name: 'Europe' },
            { valueField: 'americas', name: 'Americas' },
            { valueField: 'africa', name: 'Africa' }
        ],
        animation: false,
        tooltip: {
            enabled: true,
            shadow: {
                blur: 5,
                color: "#000050",
                offsetX: -3,
                offsetY: -3,
                opacity: 0.8
            }
        }
    });
});

blur

Specifies the blur distance of the tooltip's shadow.

Type: Number
Default Value: 2

The larger the value assigned to this option, the more the shadow's edge is blurred.

color

Specifies the color of the tooltip's shadow.

Type: String
Default Value: #000000

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)

offsetX

Specifies the horizontal offset of the tooltip's shadow relative to the tooltip in pixels.

Type: Number
Default Value: 0

offsetY

Specifies the vertical offset of the tooltip's shadow relative to the tooltip in pixels.

Type: Number
Default Value: 4

opacity

Specifies the opacity of the tooltip's shadow.

Type: Number
Default Value: 0.4