| Share this post! | Vote this! |
|
As Java Swing lacks Charting API, we can make use of the JavaFX Chart API and not depend on other 3rd party libraries like JFreeChart and others. The javafx.scene.chart is the package which contains all the charting related classes. In this example we will look at creating Scatter Charts and Bar Charts which are categorized as XYCharts which is nothing but these charts are plotted on a X and Y axis. The classes for the charts to be used are javafx.scene.chart. Scatter Chart and javafx.scene.chart. Bar Chart. If you happen to look at the declaration of these classes, they accept generic types <X,Y> where X indicates the type on the X Axis and Y indicates the type on the Y axis. more...




0 comments:
Post a Comment