I used struts2.1.6 and jfreechart1.0.12.
You can go
Http://struts.apache.org/download.cgi#struts216(LowerLoad struts2 jar files)
Http://sourceforge.net/projects/jfreechart/files/(LowerJfreechart and jcommon and related jar files)
All right, after you have downloaded all the jar files, the jar files are not required. You only need to import a part of them.
Struts2-core-2.1.6.jar
Freemarker-2.3.13.jar
Xwork-2.1.2.jar
Ognl-2.6.11.jar
Commons-fil
Jfreechart is a free Java chart library. jfreechart supports pie charts (2D and 3D), bar charts (horizontal and vertical, neatly stacked), line charts, scatter plots, sequence charts,
High and low open closed chart, candle holder chart, Gantt Chart, combined with plot, thermometer, dial and more. Jfreechart can be used in applications, such as Applets, Servlets,
The latest version of jfreechartis jfreechart-1.0.11.zip. You can find it at http://www.jfree.org/jfreechart/index.html.
Ii. basic use of jfreechart
Regardless of the created graph, jfreechart follows these steps:
1. Create a dataset. All data is stored in dataset. (Create a data source (Dataset) to include the data to
A Java Web project needs a chart display, so I chose Jfreechart (normal people would think.) In view of this time to give me the lesson is bigger, spend more time, so will struts2 integrated Jfreechart method written down to commemorate these days spent time and energy.
First, the use of Jfreechart, not much to say on the internet a lot of information.
The packa
I. Added JAR PACKAGE
Struts2-jfreechart-plugin-2.1.6.jar in the corresponding jar package for STRUTS2
Jcommon-1.0.23.jar in the Jfreechart official website to find
Jfreechart-1.0.19.jar in the Jfreechart official website to find
Jfreechart the correspon
MATERIALS:
(1) JFreeChart jar package: jcommon-1.0.17.jar, jfreechart. jar, struts2-jfreechart-plugin-2.1.6.jar
(2) Struts2 jar package, omitted
Tool: Eclipse IDE, Server is ready to use tomcat
Start integration:
1. Create a Dynamic Web Project and integrate Struts2 with specific jar packages and configurations. Release it to tomcat and test it. By the way, the t
bottom -----------*/
Jfreechart. getlegend (). setitemfont (new font ("", Font. Plain, 12 ));
For the graph;
The following two methods are used to set the horizontal and vertical settings.
Jfreechart chart = chartfactory. createtimeserieschart ("", "time", "price", linedataset, true );
Xyplot plot = (xyplot) Chart. getplot ();
Vertical:
Valueaxis = plot. getdomainaxis ();Valueaxis. setlabelfont (new font
For a project, I found a jfreechart on the Internet to form a pie chart, column chart, and so on.
1. Introduction to jfreechart
Jfreechart is an open-source Java project. It is mainly used to develop various charts, including pie charts, bar charts (common bar charts and stack bar charts), line chart, Area Chart, distribution chart, hybrid chart, Gantt chart, and
Jfreechart is SourceForgeA Java open-source project is an excellent Java chart generation plug-in that provides,Servlet and JSP generate charts of various image formats, including bar chart, pie chart, line chart, and Sequence Chart.
Jfreechart depends on another project: jcommon
Jfreechart projects are free of charge, but documents are charged.
L
The basic steps
Jfreechart is an open source JAVA project that is designed to develop a wide variety of charts, including pie, histogram (plain column and stack bar), line, area, map, blending, Gantt Chart, and some dashboards. In these different patterns of graphics can meet the requirements of the current business system. Jfreechart is a graphical development technology based on the JAVA language.
The project also needs to use jfreechart to generate a dashboard, and quickly found the code on the internet, used it to modify it, and finally output the image to the local device. the project needs are changing, and everything is possible.Import java. AWT. basicstroke;
Import java. AWT. color;
Import java. AWT. dimension;
Import java. AWT. Font;
Import java. Io. file;
Import javax. Swing. jpanel;
Import org. jfree. Chart. chartpanel;
Import org. j
Chart|java objects
Jfreechart Java Object Relationship Cyberspace
Blog China Category: Java technology,
Jfreechart is an excellent open source Java 2D Project, the disadvantage of which is the lack of documentation, both in English and Chinese. This article is the second part of the empirical summary
The coordination relation of the object of the Jfreechart dr
/displaychart?filename=" + filename;
%>
The results of this JSP program are shown below
Figure I
Advanced properties of two-column graphs
The above procedure is simple, but the resulting histogram is also very simple. More often, we may need different effects. Org.jfree.chart.ChartFactory this factory class has Createbarchart, Createstackedbarchart, Createbarchart3d, Createstackedbarchart3d these several factory methods to create different types of columnar graphs. The
In Java project, for example, you first need to import the jar packages you need: Jcommon-1.0.23.jar, Jfreechart-1.0.19.jar.
appeased Chart Example:
Package Com.it.jfchart;
Import Java.awt.Font;
Import Org.jfree.chart.ChartFactory;
Import Org.jfree.chart.ChartPanel;
Import Org.jfree.chart.JFreeChart;
Import Org.jfree.chart.plot.PiePlot;
Import Org.jfree.chart.title.LegendTitle;
Import Org.jfree.chart.title.TextTitle;
Import Org.jfree.data.general.De
1.Combined with jfreechart
(1) You can view the help documentation to know how to configure it. FirstAdd the struts2-jfreechart-plugin-2.1.8.1.jar package to the project, note that the struts2-jfreechart at this time-The plugin-2.1.8.1.jar file in the struts-plugin.xml should be:
Jfreechart-Default"Extends = "struts-De
Jfreechart is a Java project on the open source site sourceforge.net. It is mainly used to generate a variety of charts, including: pie chart, bar chart (General bar chart and stack bar chart), line chart, Area Chart, distribution chart, hybrid chart, Gantt chart, and some dashboard. These charts of different types can basically meet the current requirements. The company's main products include:1. jfreereport: Report solution Tool2.
approach is only suitable for some local area network applications, and the Internet environment is not very appropriate. So we'll introduce a Java diagram engine Jfreechart to produce web-based charts.
Introduction of Jfreechart Project
Jfreechart is a Java project on the open source site SourceForge.net, which is used primarily for a wide variety of charts,
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.