showTooltip

Shows the chart tooltip for specific point or the shared tooltip for specific category. The method accepts a function which will be called for each point until the function returns true.

Parameters

filter Function|Number|Date|String

The callback function which will be called for the points or the category value for a shared tooltip.

Example - show the tooltip for a point with value equal to 2

<div id="chart"></div> <script> $("#chart").kendoChart({ series: [{ data: [1, 2] }] }); var chart = $("#chart").data("kendoChart"); chart.showTooltip(function(point) { return point.value === 2; }); </script>

Example - show the shared tooltip for category equal to "B"

<div id="chart"></div> <script> $("#chart").kendoChart({ series: [{ name: "foo", data: [1, 2] }], categoryAxis: { categories: ["A", "B"] }, tooltip: { visible: true, shared: true } }); var chart = $("#chart").data("kendoChart"); chart.showTooltip("B"); </script>
In this article
showTooltip
Not finding the help you need?
Contact Support