Kendo UI图表-希望工具提示始终显示 [英] Kendo UI Chart - Want tooltip to always show

查看:97
本文介绍了Kendo UI图表-希望工具提示始终显示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要有关Kendo Chart工具的帮助. 我正在尝试绘制特定日期的折线图.我在特定的日子有预订,可以看到圆形图.如果我将鼠标悬停在上面,则可以看到包含预订摘要的工具提示.我希望此工具提示始终可见/打开.目前,它仅在鼠标悬停时发生.

I need some help with how Kendo Chart tool. I am trying to plot a line graph with bookings on particular date. I have a booking on a particular day and can see the circular plot. If i hover on it i can see the tool tip which contains the summary of the booking. I want this tooltip to always be visible/open. At the moment it only happens on mouse over.

function createChart() {
    $("#chart").kendoChart(data);
                     var tooltip = $("#chart").kendoTooltip({
                        width: 120,
                        position: "top",
                       visibe: true
                    }).data("kendoTooltip");
 
}

我第一次使用剑道,现在非常困惑.任何帮助将不胜感激.

I am using Kendo for the first time and am very confused now. Any help will be much appreciated.

推荐答案

通过将系列标签的visible设置为true,您始终可以显示工具提示或标签,而无需将鼠标悬停在工具提示或标签上:

You can always show the tooltips or labels without having to hover over them by mouse, by using setting the visible of the series labels to true as follows:

seriesDefaults: {
                type: "line",
                labels: {
                    visible: true
                }
            }

您可以在此处查看并查看演示示例: http: //demos.telerik.com/kendo-ui/line-charts/local-data-binding

You can check and see a demo example here: http://demos.telerik.com/kendo-ui/line-charts/local-data-binding

这篇关于Kendo UI图表-希望工具提示始终显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆