如何添加点击事件以图表JS
您好,我有一个关于JS图表的问题。我已经在Django应用程序中创建了一个,我想通过单击图表中的某个点来生成JavaScript警报。 警报如何获得我选择的观点的值? 例如,具有下图中所示的值92如下所示:
Hello I have a question concerning js charts. I have already created one in django application and i want to generate a javascript alert by clicking a certain point in the chart.
How can the alert get the value of the point that i choose?
For example with the value 92 like what is shown in the figure below:
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
可以使用
onclick
甚至处理程序进行以下操作:请查看以下可运行的代码,然后查看其工作原理。
This can be done with an
onClick
even handler as follows:Please take a look at below runnable code and see how it works.