如何在网络上动态创建带有鼠标悬停信息框的绘图(非 Flash)?

发布于 2024-09-03 02:26:11 字数 364 浏览 3 评论 0原文

我正在考虑创建一个工具来在网站上可视化科学数据。为此,用户输入一些查询字符串,然后输出一个简单的 (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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

疏忽 2024-09-10 02:26:11

如果您需要动态元素而不需要 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...

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文