如何在网络上动态创建带有鼠标悬停信息框的绘图(非 Flash)?
我正在考虑创建一个工具来在网站上可视化科学数据。为此,用户输入一些查询字符串,然后输出一个简单的 (x,y) 图(类似于 这个)
我知道使用 Matplotlib,可以为 python 动态生成图形。但是,这并不能解决需要使用某些自定义 java 脚本代码来显示信息框的问题。我还遇到了谷歌图表工具,它非常接近我所需要的。这里的问题是,代码需要从谷歌获取,这是我的雇主不喜欢的。
满足我的要求的 python、Java、PHP(或 Java 脚本)的最佳 OSS 库是什么?
谢谢, 克里斯
I'm thinking about creating a tool to visualize scientific data on a website. For this, the user enters some query string and out comes a simple (x,y)-plot (similar to this)
I know that using Matplotlib, one can generate graphics on the fly for python. However, this doesn't solve the need for some custom java-script code to display the info boxes. I also came across google chart tools, which are very close to what I need. The problem here is, that the code needs to be fetched from google, which my employer won't like.
What would be the best OSS library for python, Java, PHP (or Java-script) out there to meet my requirements?
Thanks,
Chris
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您需要动态元素而不需要 Flash 或 Java 小程序,那么 JavaScript 是最佳选择。要创建绘图,您可以使用 HTML5
canvas
元素。捕获鼠标事件是JS小事...
If you need dynamic elements without flash or Java applet then JavaScript is the best choice. To create plots you could use HTML5
canvas
element.Capturing mouse events is JS is trivial...