JFreeChart Architecture

JFreeChart Architecture

This chapter explains basic class level and application level architectures of JFreeChart to give you an idea about how JFreeChart interacts with different classes and how it fits in your Java based application.

Class Level Architecture

The class level architecture explains how various classes from the library interacts with each other to create various types of charts.



Following is the detail of the units used in the above block diagram :

FileThe source having user input to be used for creating a dataset in the file.
DatabaseThe source having user input to be used for creating a dataset in the database.
Create DatasetAccepts the dataset and stores the dataset into dataset object.
General DatasetThis type of dataset is mainly used for pie charts.
Category DatasetThis type of dataset is used for bar chart, line chart,etc.
Series DatasetThis type of dataset is used for storing series of data and construct line charts.
Series Collection DatasetThe different categories of series datasets are added to series collection dataset. This type of dataset is used for XYLine Charts.
Create ChartThis is the method which is executed to create final chart.
Frame/ImageThe chart is displayed on a Swing Frame or an image is created.

Application Level Architecture

The application level architecture explains where JFreeChart library sits inside a Java Application.


The client program receives user data and then it make use standard Java and JFreeChart APIs based on requirements to generate the output in the form of either a frame, which can be displayed directly inside the application or independently in the image formats such as JPEG or PNG.


Was this article helpful?

Related Articles

Leave A Comment?

You must be logged in to post a comment.