Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想知道如何利用 Shield UI 图表上的点击事件?我需要向用户显示一条消息,包括点的值和一些文本。
下面是使用在 Shield UI 图表上单击点的事件的代码:
events: { pointSelect: function pointSelectHandler(args) { var Information= "Point Value: " + args.point.y; alert(Information); },
不要忘记启用点选择:
enablePointSelection:true,