【JFreeChart 介绍】

JFreeChart是JAVA平台上的一个开放的图表绘制类库。它完全使用JAVA语言编写,是为applications, applets, servlets 以及JSP等使用所设计。JFreeChart可生成饼图(pie charts)、柱状图(bar charts)、散点图(scatter plots)、时序图(time series)、甘特图(Gantt charts)等等多种图表,并且可以产生PNG和JPEG格式的输出,还可以与PDF和EXCEL关联。



 

JFreeChart截止2011年2月22日为止的相当不错的java图形解决方案,基本能够解决目前的图形方面的需求。

JFreeChart Java图表库是一个100%免费的开源项目,使开发人员容易专业质量图表显示在他们的应用程序。 JFreeChart广泛的特性包括:

一致的和证据确凿的API,支持多种图表类型;

一个灵活的设计,很容易扩展,和目标服务器端和客户端应用程序;

支持多种输出类型,包括Swing组件、图像文件(包括PNG和JPEG)和矢量图形文件格式(包括PDF、EPS和SVG);

JFreeChart是“开源”,或者更具体地说, 自由软件 。 它是分布式的条件下 GNU通用公共许可证 (LGPL),它允许使用专有应用程序。

类层次架构

类层次架构解释了如何把不同阶层的相互库交互,以创建不同类型的图表。

利用JFreeChart插件生成动态统计图表的基本步骤如下。

(1)创建绘图数据集合。

(2)创建JFreeChart实例。

(3)自定义图表绘制属性,该步可选。

(4)生成指定格式的图片,并返回图片名称。

(5)组织图片浏览路径。

(6)通过HTML中的<img>元素显示图片。



 

JFreeChart is a free 100% Java chart library that makes it easy for developers to display professional quality charts in their applications. JFreeChart's extensive feature set includes:

1)a consistent and well-documented API, supporting a wide range of chart types;

2)a flexible design that is easy to extend, and targets both server-side and client-side applications;

3)support for many output types, including Swing and JavaFX components, image files (including PNG and JPEG), and vector graphics file formats (including PDF, EPS and SVG);

4)JFreeChart is open source or, more specifically, free software. It is distributed under the terms of the GNU Lesser General Public Licence (LGPL), which permits use in proprietary applications.

猜你喜欢

转载自gaojingsong.iteye.com/blog/2388392