Populating the chart from a Database

In most cases, you will want to populate charts with data coming from a database table or query. Chart FX for Java supports data binding through JDBC.

JDBC offers you a basic ways to work with data: using a ResultSet, where you create an in-memory store of the records you want to work with.

It is important to note, development strategies used for database access vary greatly from application to application. Furthermore, JDBC can be used to integrate data from complex application tiers. Therefore, this section is limited to describe basic techniques on how Chart FX for Java uses JDBC and its JDBCDataProvider to populate charts in JSP applications.