是JavaScript图表库可自定义或兼容JavaFX [英] Are javascript chart library customizable or compatible with JavaFX

查看:172
本文介绍了是JavaScript图表库可自定义或兼容JavaFX的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道如果典型的javascript拓扑图表库可以轻松地自定义执行一些操作,当我悬停或点击节点对象?我目前正在考虑的库是D3.js,chartjs和sigma.js,并且操作可以包括通过JavaFX调用Java方法。

解决方案

JavaScript可视化库可以通过 WebView 相关的Java< - JavaScript桥接技术



这种集成的示例是嵌入jQuery DatePicker 的 JavaFX应用程序。 OK,所以datepicker不是图表库,但一般的集成原则是一样的。



Patrick Martin的 Dex项目集成了JavaFX(使用Groovy)和基于JavaScript的可视化库,例如 D3.js ,所以这证明可以发生与D3的集成(虽然我不认为Patrick提供的Dex引擎的源,这将允许你看看他是如何做到的)。



请注意, JavaFX包含本机图表库。它的图表往往是传统的商业图表,如折线图,饼图等,而不是一个数学图表的虚拟化


I was wondering if typical javascript topology chart libraries can be easily customized to perform some action when I hover or click on the node object? The libraries I'm currently considering are D3.js, chartjs, and sigma.js and the actions could include calling a Java method through JavaFX. Any suggestions would be appreciated.

Thanks!

解决方案

JavaScript visualization libraries may be integrated with JavaFX via WebView and it's associated Java<->JavaScript bridge technology.

A sample of such integration is this JavaFX application which embed a jQuery DatePicker. OK, so a datepicker is not a chart library, but the general integration principle is the same.

Patrick Martin's Dex project integrates JavaFX (with Groovy) and JavaScript based visualization libraries such as D3.js, so this proves that integration with D3 can occur (though I don't think Patrick makes available the source for the Dex engine which would allow you to see how he does this).

Note that JavaFX includes a native charting library. It's charts tend to be traditional business charts such as line charts, pie charts, etc. rather than vizualization of a mathematical graph.

这篇关于是JavaScript图表库可自定义或兼容JavaFX的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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