折线图mousover效果/工具提示 [英] Line chart mousover effects / tooltips

查看:98
本文介绍了折线图mousover效果/工具提示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在鼠标悬停在数据区域的任何位置时显示工具提示?目前,它们仅在鼠标正好位于数据行顶部时显示。一个很好的例子是Google Analytics折线图。
另外,是否可以执行鼠标悬停效果来执行图形效果,例如在鼠标悬停时使任何给定的数据点更粗?

How do I make it so that tooltips display when the mouse hovers at any spot in the data area? Currently they only display when the mouse is exactly on top of the data line. A good example are Google Analytics line charts.

Also, is it possible to do mouseover effects to perform graphical effects, such as making any given data point thicker on mouseover?

推荐答案

查看样本环境,交互式图表 - >选择。

使用鼠标事件和HitTest方法似乎可以实现大多数事情。
Have a look in the Samples Environment, Interactive charting -> Selection.

Most things seem to be possible by using the mouse events and the HitTest method.


这篇关于折线图mousover效果/工具提示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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