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

Line Graph Marker on Mouse Hover

5 Answers 416 Views
Charts
This is a migrated thread and some comments may be shown as answers.
Justin
Top achievements
Rank 1
Justin asked on 19 Nov 2012, 08:48 PM
Hello everyone! :)

I'm working with a line graph and I'm trying to get markers to appear only when the user hovers over the line in the graph.  I have found an example on another forum post that does exactly what I want, but I cannot figure out how the markers work.  I see an explicit "visible: false" line, but nothing to set up the markers to appear on hover.  Any help here will be greatly appreciated.  Many thanks in advance!

The post I'm referring to is here
http://www.kendoui.com/forums/dataviz/chart/formatting-my-chart.aspx

And the poster's example is here (hover over the actual line values in the line graph to see what I'm talking about)  Hopefully it's ok to post somebody else's link.  This feels a little awkward.  :)

http://jmillspaysbills.com/clients/radolo/rockhabits/daily-huddle.html

5 Answers, 1 is accepted

Sort by
0
Hristo Germanov
Telerik team
answered on 20 Nov 2012, 09:44 AM
Hi Justin Kessel,

Thank you for the contacting us.

Unfortunately, this is a bug and we will fix it as soon as we can.

For your convenience I will attach you the fix after we fix it.

I have updated your telerik points.

All the best,
Hristo Germanov
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Simon
Top achievements
Rank 1
answered on 18 Sep 2013, 02:21 AM
Was there ever a solution posted for this problem?
0
Hristo Germanov
Telerik team
answered on 19 Sep 2013, 10:34 AM
Hello Simon,

With the SP1 of Kendo UI I have fixed some major problems around this functionality.

In order to achieve this functionality you need to:
1) Hide the markers initially.
2) Show the markers in the highlight configuration and you need to change the style of the markers in this object in you want to.

Example: http://jsbin.com/IPAzEXe/4/edit

Regards,
Hristo Germanov
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
indian
Top achievements
Rank 1
answered on 16 May 2018, 07:30 AM

The config option highlight.markers seems to be deprecated by now, is it?

Atleast it's not documented and doesn't work in the current version. How would I go about hiding the markers now? The series.markers.visible will hide the markers, but they'll reappear on mouse hover. I want them gone in any situation.

I tried settings size and border.width to 0. But the marker still appears as a little white dot.

0
Stefan
Telerik team
answered on 18 May 2018, 05:16 AM
Hello, Christoph,

If the marker can indeed be hidden with the markers.visible property. The dot the appear on hover is from the highlight, which has to be hidden as well:

https://docs.telerik.com/kendo-ui/api/javascript/dataviz/ui/chart/configuration/series.highlight#series.highlight.visible

https://docs.telerik.com/kendo-ui/api/javascript/dataviz/ui/chart/configuration/series.markers.visible

I made an example demonstrating this:

https://dojo.telerik.com/EKOFOwaM

I hope this is helpful.

Regards,
Stefan
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
Charts
Asked by
Justin
Top achievements
Rank 1
Answers by
Hristo Germanov
Telerik team
Simon
Top achievements
Rank 1
indian
Top achievements
Rank 1
Stefan
Telerik team
Share this question
or