seriesDefaults.tooltip Object

The data point tooltip configuration options.

seriesDefaults.tooltip.background String

The background color of the tooltip. The default is determined from the series color.

seriesDefaults.tooltip.border Object

The border configuration options.

seriesDefaults.tooltip.border.color String(default: "black")

The color of the border.

seriesDefaults.tooltip.border.width Number(default: 0)

The width of the border.

seriesDefaults.tooltip.color String

The text color of the tooltip. The default is the same as the series labels color.

seriesDefaults.tooltip.font String(default: "12px Arial,Helvetica,sans-serif")

The tooltip font.

seriesDefaults.tooltip.format String

The tooltip format.

Example

//sets format of the tooltip
format: "C"

seriesDefaults.tooltip.padding Number|Object

The padding of the tooltip.

Example

// sets the top, right, bottom and left padding to 3px.
padding: 3

// sets the top and left padding to 1px
// right and bottom padding are left at their default values
padding: { top: 1, left: 1 }

seriesDefaults.tooltip.template String|Function

The tooltip template. Template variables:

  • value- the point value
  • category- the category name
  • series- the data series
  • dataItem- the original data item used to construct the point. Will be null if binding to array.

Example

$("#sparkline").kendoSparkline({
    data: [200, 450, 300, 125],
     seriesDefaults: {
         tooltip: {
             visible: true,
             template: "#= value #"
         }
     }
});

seriesDefaults.tooltip.visible Boolean(default: false)

A value indicating if the tooltip should be displayed.

In this article