jfreechart目前最高版本为1.0.0版(http://www.jfree.org/jfreechart/index.html)。可以绘制 pie charts 饼图,bar charts 柱状图,line and area charts曲线图,scatter plots and bubble charts 散列图,time series 时序图,Area Charts区域图,Difference Chart差异图,Step Chart步骤图,Multiple Axis Charts 混合图,Gantt charts甘特图,combination charts 复合图 jfreechart核心类库介绍: jfreechart主要由两个大的包组成:org.j...
by qbq - Java文档中心 - 2009-06-15 14:36:27 阅读(876) 回复(0)
最近由于项目需要,开始学习jfreechart和iText,在网上找了一下相关的资料不是很多,特别是jfreechart在官方文档上没有像iText那样详尽的说明及例子,而且官方的demo只有一个jar文件,里面也比较乱,不知道从什么地方下手,在网上找了几个例子,开始循序渐进的学吧! 第一个例子是个台湾人写的,很多的名词都是用的台湾说法,读过侯捷先生翻译的书的朋友应该有很深的体会!学习任何一个开源的项目第一个任务就是配环境, JFreeC...
jfreechart目前是最好的java图形解决方案,基本能够解决目前的图形方面的需求,主要包括如下几个方面: pie charts (2D and 3D):饼图(平面和立体) bar charts (regular and stacked, with an optional 3D effect):柱状图 line and area charts:曲线图 scatter plots and bubble charts time series, high/low/open/close charts and candle stick charts:时序图 combination charts:复合图 Pareto charts Gantt ch...
原文来自: http://amozon.javaeye.com/blog/35167 jfreechart类: void setAntiAlias(boolean flag) 字体模糊边界 void setBackgroundImage(Image image) 背景图片 void setBackgroundImageAlignment(int alignment) 背景图片对齐方式(参数常量在org.jfree.ui.Align类中定义) void setBackgroundImageAlpha(float alpha) 背景图片透明度(0.0~1.0) void setBackgroundPaint(Paint paint) 背景色 void setBorderPain...
Overview jfreechart includes mechanisms for generating, collecting and displaying tool tips for individual components of a chart. In this section, I describe: • how to generate tool tips (including customisation of tool tips); • how tool tips are collected; • how to display tool tips; • how to disable tool tips if you don’t need them; Generating Tool Tips 保证tooltip是...
export DISPLAY=127.0.0.1:0.0 -Djava.awt.headless=true 本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/598/showart_177462.html
唉,现在客户的要求怎么越来越多,有excel转换还觉得不够,还需要有图形显示…… 还好,有jfreechart // 创建数据集 public CategoryDataset createDataset() { DefaultCategoryDataset dataset = new DefaultCategoryDataset(); for (int i=0; i public jfreechart createChart(CategoryDataset dataset) { // 创建图表对象 jfreechart chart = ChartFactory.createBarChart ( chartTitl...
学jfreechart不得不看的中文API jfreechart类: void setAntiAlias(boolean flag)字体模糊边界 void setBackgroundImage(Image image)背景图片 void setBackgroundImageAlignment(int alignment)背景图片对齐方式(参数常量在org.jfree.ui.Align类中定义) void setBackgroundImageAlpha(float alpha)背景图片透明度(0.0~1.0) void setBackgroundPaint(Paint paint)背景色 void setBorderPaint(Paint paint)边界线条颜色 voi...
import java.awt.*; import java.awt.event.*; import javax.swing.*; import org.jfree.chart.ChartPanel; import org.jfree.chart.jfreechart; import org.jfree.chart.axis.DateAxis; import org.jfree.chart.axis.NumberAxis; import org.jfree.chart.plot.XYPlot; import org.jfree.chart.renderer.xy.XYItemRenderer; import org.jfree.chart.renderer.xy.XYLineAndShapeRenderer; import org.jfree.data.time.*; import org...
在windows下出现jfreechart中文乱码了。 在网上找的都是在LINUX下的解决方法, 请问有没有人在windows上遇到过乱码的问题, 以及解决的办法? 谢谢 ------------------------------------------------------------------------------- 问题已解决: 单独对legend和plot设置一下字体就可以了。 [ 本帖最后由 tj_1023 于 2008-10-22 13:24 编辑 ]