What is the best way to embed a D3js visualization within a Java application?
Initial thoughts:
- JWebPane (Vaporware)
- Lobo browser (Still at HTML 4 and CSS 2)
- DJ Native Swing Project (Inactive since 2011)
- Other ideas?
There have been related SO questions (such as this), I'm looking for solutions specific to supporting D3js.
I am open to ideas that may not include a full blown web-browser integration, just the minimal set required for D3 visualization. I'm thinking this would include a Javascript interpreter, DOM manipulation, and an HTML/CSS layout engine such as WebKit.
What is the best way to embed a D3js visualization within a Java application?
Initial thoughts:
- JWebPane (Vaporware)
- Lobo browser (Still at HTML 4 and CSS 2)
- DJ Native Swing Project (Inactive since 2011)
- Other ideas?
There have been related SO questions (such as this), I'm looking for solutions specific to supporting D3js.
I am open to ideas that may not include a full blown web-browser integration, just the minimal set required for D3 visualization. I'm thinking this would include a Javascript interpreter, DOM manipulation, and an HTML/CSS layout engine such as WebKit.
Share Improve this question edited May 23, 2017 at 10:31 CommunityBot 11 silver badge asked Feb 8, 2013 at 17:53 supyosupyo 3,0372 gold badges23 silver badges35 bronze badges 3 |5 Answers
Reset to default 1I have used JavaFX and webengine for this. But I am really thinkig about porting d3 to Java ...
You could use SWT's browser component via SWT/AWT bridge
javafx-d3 - Provides a Java API to use the JavaScript library d3.js with the JavaFx WebView.
So far this seems to be the best option.
I just stumbled upon this d3js without testing it.
the best way i have seen till now that importing jxBrowser library and call your html...or what ever extension was to java application. Later, you play with the Jfram change the size you want and etc..
Desktop@browse()
? It's not embedded, but it leverages an valuable user preference. – trashgod Commented Feb 8, 2013 at 18:11