Some of Stef's Stuff

Eclipse and JavaScript graphs

by Stefano on 2015.12.29, no comments

Want create site? Find Free WordPress Themes and plugins.

Many JavaScript libraries which provide good looking charting capabilities like Highcharts, Flotdygraphs and plotly have been developed in the last few years. Eventually they can be used within Eclipse/PDE to create charting views or editors.

The idea is to run an embedded Jetty instance to serve a HTML page enabled with the javascript plotting library of choice. The page is then displayed by a SWT browser embedded in a view or editor.

Interaction between different parts of the Eclipse IDE and the chart can be achieved defining JS functions that will be executed through browser’s calls (see Vogella’s blog). Data can be exchanged in serialised form using JSON.

The code of this test is available on GitHub


Eclipse Jetty server

Use Jetty, an embedded a HTTP server, to serve html pages at runtime



Embed the plot into the HTML



Exchange data with the embedded page



Did you find apk for android? You can find new Free Android Games and apps.

Leave a Reply

Your email address will not be published. Required fields are marked *