Kendo UI Chart - Want tooltip to always show

三世轮回 提交于 2020-01-17 03:37:05

问题


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.


回答1:


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
                }
            }

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



来源:https://stackoverflow.com/questions/30554135/kendo-ui-chart-want-tooltip-to-always-show

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!