• Post Reply Bookmark Topic Watch Topic
  • New Topic

What is the most popular and best tools for Charts and Grafik?  RSS feed

 
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am going to programm for charting such as stock charts and statistic results. I've googled and find following tools:

Chart JS and Java FX.

Sincd I have little experience, so I am not sure which one is the better one. Or there is other better ones?


Regards

 
Saloon Keeper
Posts: 4036
94
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is this for a web app or a desktop app? JavaFX would imply the latter, whereas Javascript libraries would imply the former.
 
Thomas Chang
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Tim Moores wrote:Is this for a web app or a desktop app? JavaFX would imply the latter, whereas Javascript libraries would imply the former.


Thanks for the reply.

Indeed I need both.

But do you know, when for desktop, is the JavaFX the best and most popular one? And for web app the Chart JS? Or there is another better alternative?

 
Bartender
Posts: 11445
18
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Cannot comment on JavaFX as I have no first hand experience, but in the past I have successfully used JFreeChart
You can use it as standard swing 'JComponent'. Also, it has built in utilities to convert the generated chart to images, so it can be rendered over the web.
Another option you might want to evaluate is Cewolf
 
Bartender
Posts: 1210
25
Android C++ Java Linux PHP Python
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When I had to select a charting library, what I did was understand exactly what kind of information and interaction the client wanted, and then wrote small prototype programs to try out different frameworks before selecting one.
IMO, it's best to select a framework that minimizes the amount of custom code you have to write. If you have never done any graphics programming with Swing or JavaFX, you might find coding custom charts time consuming.

Another question is to ask yourself is do you need to code your own custom application at all? If you just want to iteratively analyze and visualize data, you can use ipython + matplotlib with very little coding.

If you do want to write your own application:

In the data science / statistics community, d3.js is popular for browser based charts and visualization.

In java desktop area, JFreechart + Swing is used more than JavaFX, but probably only because JFreechart and Swing have been around a lot longer than JavaFX.

If you want to avoid duplicating the same charting code in webapp and desktop app, write just the web version and use JavaFX's WebView embedded browser to show it inside desktop app.

 
Thomas Chang
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Many thanks!
 
Thomas Chang
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Karthik Shiraly wrote:

In the data science / statistics community, d3.js is popular for browser based charts and visualization.



The d3.js is realy nice!
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!