This is a migrated thread and some comments may be shown as answers.

Hide tootlip for specific data

1 Answer 69 Views
Charts
This is a migrated thread and some comments may be shown as answers.
Marcin
Top achievements
Rank 1
Veteran
Marcin asked on 12 Feb 2014, 07:54 AM
Hello
I would like to ask if there is possibility to hide tooltip for specific data. I have data value in series that I don't want t  show tooltip, other values should have tooltip. Is such thing posisble?

Regards
Marcin

1 Answer, 1 is accepted

Sort by
0
Iliana Dyankova
Telerik team
answered on 13 Feb 2014, 10:07 AM
Hello Marcin,

This scenario is not supported out-of-the-box by Kendo UI Chart and its implementation requires additional code. As a possible approach I can suggest the following:
  • Hide the default tooltip;
  • In the seriesHover event display the tooltip depending on some conditions.
    $("#chart").kendoChart({
       //....
       tooltip: {
          visible: false
       },
       seriesHover: function(e){
         if(//your conditions here ){
            $('.k-tooltip').show().html(e.value).css("background", e.series.color);
         }
       }
    });
Regards,
Iliana Nikolova
Telerik

Check out the new Telerik Platform - the only modular platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native apps. Register for the free online keynote and webinar to learn more about the Platform on Wednesday, February 12, 2014 at 11:00 a.m. ET (8:00 a.m. PT).

Tags
Charts
Asked by
Marcin
Top achievements
Rank 1
Veteran
Answers by
Iliana Dyankova
Telerik team
Share this question
or