jfree

jfree

View Answers

December 17, 2008 at 10:46 PM

Hi friend,

Code to solve the problem :

import org.jfree.chart.*;
import org.jfree.chart.plot.PlotOrientation;
import org.jfree.data.category.DefaultCategoryDataset;
import org.jfree.data.general.DefaultPieDataset;
import org.jfree.data.xy.*;
import org.jfree.data.*;

public class xyLine{
public static void main(String arg[]){
XYSeries series = new XYSeries("Average Weight");
series.add(20.0, 20.0);
series.add(40.0, 25.0);
series.add(55.0, 50.0);
series.add(70.0, 65.0);
XYDataset xyDataset = new XYSeriesCollection(series);
JFreeChart chart = ChartFactory.createXYLineChart
("XYLine Chart using JFreeChart", "Age", "Weight",
xyDataset, PlotOrientation.VERTICAL, true, true, false);
ChartFrame frame1=new ChartFrame("XYLine Chart",chart);
frame1.setVisible(true);
frame1.setSize(300,300);
}
}

For more information,Examples and Tutorials on jfree chart visit to :

http://www.roseindia.net/chartgraphs/

Thanks









Related Tutorials/Questions & Answers:
jfree chart
jfree chart  i need donut chart using jfree
Artifacts of jfree
List of Artifacts of jfree maven depenency
Advertisements
Jfree exception
Jfree exception  import java.sql.*; import org.jfree.chart.*; import org.jfree.chart.plot.PlotOrientation; import...:11) Java Result: 1 i compiled the jfree program,,compiled without errors
Jfree exception
Jfree exception  import java.sql.*; import org.jfree.chart.*; import org.jfree.chart.plot.PlotOrientation; import...:11) Java Result: 1 i compiled the jfree program,,compiled without errors
JFREE error
JFREE error   hi......... the code for making chart is: WHICH IS GIVING THE ERROR import org.jfree.chart.*; import org.jfree.data.category.*; import org.jfree.data.general.DefaultPieDataset; import org.jfree.data.xy.
Version of jfree>jcommon dependency
Version of jfree>jfreechart dependency
Version of jfree>jfreereport dependency
JFree - Java Beginners
JFree  how to import JFree to jdk1.6.0_05, not to new version,, or how to get java new version (that used JFree ) ? regads  Hi friend, For solving the problem visit to : http://www.roseindia.net/chartgraphs
jfree - Java Beginners
jfree  how use the "import jfree" on jdk1.5.0_6,, or how to plot data in xy line on jdk1.5.0_6
jfree missing import file
jfree missing import file  hi....... i have checked the jar file of jfree that import file of RECTANGLEINSETS is not there then what to do now? how to solve this problem? plz help?   Download jcommon-1.0.16.jar
jfree missing import file
jfree missing import file  hi....... i have checked the jar file of jfree that import file of RECTANGLEINSETS is not there then what to do now? how to solve this problem? plz help?   Download jcommon-1.0.16.jar
jfree missing import file
jfree missing import file  hi....... i have checked the jar file of jfree that import file of RECTANGLEINSETS is not there then what to do now? how to solve this problem? plz help?   Download jcommon-1.0.16.jar
jfree missing import file
jfree missing import file  hi....... i have checked the jar file of jfree that import file of RECTANGLEINSETS is not there then what to do now? how to solve this problem? plz help?   Download jcommon-1.0.16.jar
JFree chart package error
JFree chart package error  hi, I had asked u abt the jfree chart package and done what u have said. Its working but its giving me error that some... the jcommon jar file and jfree jar file for the bar chart code. but now its giving
JFREE error again
JFREE error again  hi......... As i had asked u the jfree error i want to tel u that i have taken the both the jar files jfree and jcommon. but then also its giving me error i am able to compile the code but now when i am
Version of jfree>jfreechart-experimental dependency
Version of jfree>jfreechart-swt dependency
Version of jfree>jfreereport-ext dependency
jfree - Java Beginners
jfree  how use the "import jfree" on jdk1.5.0_6,,? or how to plot data in xy line on jdk1.5.0_6 ?  Hi friend, Code to solve...(300,300); } } For more information,Examples and Tutorials on jfree chart
JFREE chart - Java Beginners
JFREE chart  how can i get the latest save image of my action class?the previous one is the one i get every time there is a change in the database..thanks,i want my chart to display dynamically from my database  Hi
Jfree create error
Jfree create error  hi.............. thanks 4 ur help. as u said i have downloaded both the jar files and placed in jdk1.5 lib folder. but then also its giving the same error can u tel me why this is happening? and also u
Jfree create error
Jfree create error  hi.............. thanks 4 ur help. as u said i have downloaded both the jar files and placed in jdk1.5 lib folder. but then also its giving the same error can u tel me why this is happening? and also u
Jfree - Java Beginners
on jfree chart visit to : http://www.roseindia.net/chartgraphs/ Thanks
Jfree chart problem - Swing AWT
Jfree chart problem  hello i have a problem related to jfree chart i have some data and i want to display data in two different chart stacked area chart and line chart both in a single frame. That is hybrid combination
Pie chart Jfree create error
Pie chart Jfree create error  hi........... thanks 4 ur help but when i am using the code which has a import file import org.jfree.chart.*; its giving me an error that " package org.jfree.chart does not exists " can u help me
Maven Repository/Dependency: jfree | jfreechart
Maven Repository/Dependency of Group ID jfree and Artifact ID jfreechart. Latest version of jfree:jfreechart dependencies. # Version Release Date 1 0.9.21 01 Aug 2005
Maven Repository/Dependency: jfree | jcommon
Maven Repository/Dependency of Group ID jfree and Artifact ID jcommon. Latest version of jfree:jcommon dependencies. # Version Release Date 1 1.0.16 25 Sep 2011
Maven Repository/Dependency: jfree | jfreereport
Maven Repository/Dependency of Group ID jfree and Artifact ID jfreereport. Latest version of jfree:jfreereport dependencies. # Version Release Date 1 0.8.5-5 19 Oct
Dynamin Jfree chart in jsp---error
Dynamin Jfree chart in jsp---error   While compiling this CODE: <%@ page import="java.sql.*" %> <%@ page import="java.io.*" %> <%@ page import="org.jfree.chart.ChartFactory" %> <%@ page
JFree 3D Bar Chart not displaying in JSP - Java3D
JFree 3D Bar Chart not displaying in JSP  Hi I am trying to run JFree 3D bar chart written in your site under link: http://www.roseindia.net/chartgraphs/3Dbarchart-in-jsppage.shtml This is not working. PNG file
hybrid graph (jfree chart) - Swing AWT
hybrid graph (jfree chart)  hello i have a problem related to jfree chart.I want to display hybrid graph (Stacked Area and Line ).combination of stacked area chart and Line chart in one frame. Plese anybody help me out
Maven Repository/Dependency: jfree | jfreechart-swt
Maven Repository/Dependency of Group ID jfree and Artifact ID jfreechart-swt. Latest version of jfree:jfreechart-swt dependencies. # Version Release Date You can read more at: Maven
Maven Repository/Dependency: jfree | jfreechart-experimental
Maven Repository/Dependency of Group ID jfree and Artifact ID jfreechart-experimental. Latest version of jfree:jfreechart-experimental dependencies. # Version Release Date You can read
Maven Repository/Dependency: jfree | jfreereport-ext
Maven Repository/Dependency of Group ID jfree and Artifact ID jfreereport-ext. Latest version of jfree:jfreereport-ext dependencies. # Version Release Date 1 0.8.6 19
Create a Pie Chart in jsp Page using JFree Chart
Create a Pie Chart in jsp Page using JFree Chart  Hello Sir I followed ur tutorial on "CREATE A PIE CHART IN JSP PAGE USING JFREE CHART" and it worked fine.now i want a Little change in code .In my project first I have to view
Maven dependency for jfree - jfreechart version 0.9.21 is released. Learn to use jfreechart version 0.9.21 in Maven based Java projects
The developers of   jfree - jfreechart project have released...; jfree - jfreechart library is 0.9.21. Developer can use this version ( jfree... and Gradle. How to use  jfree - jfreechart version 0.9.21 in project? Steps
display combination of a stacked area chart and line chart in one iframe using jfree - JSP-Servlet
display combination of a stacked area chart and line chart in one iframe using jfree  hello i have a problem related to jfree chart, i want to display combination of a stacked area chart and line chart in one iframe
Maven Dependency jcommon >> 0.9.6
You should include the dependency code given in this page to add Maven Dependency of jfree >> jcommon version0.9.6 in your project
Maven Dependency jcommon >> 1.0.0
You should include the dependency code given in this page to add Maven Dependency of jfree >> jcommon version1.0.0 in your project
Maven Dependency jcommon >> 1.0.0-pre2
You should include the dependency code given in this page to add Maven Dependency of jfree >> jcommon version1.0.0-pre2 in your project
Maven Dependency jcommon >> 1.0.0-pre3
You should include the dependency code given in this page to add Maven Dependency of jfree >> jcommon version1.0.0-pre3 in your project
Maven Dependency jcommon >> 1.0.0-rc1
You should include the dependency code given in this page to add Maven Dependency of jfree >> jcommon version1.0.0-rc1 in your project
Maven Dependency jcommon >> 1.0.12
You should include the dependency code given in this page to add Maven Dependency of jfree >> jcommon version1.0.12 in your project
Maven Dependency jcommon >> 1.0.14
You should include the dependency code given in this page to add Maven Dependency of jfree >> jcommon version1.0.14 in your project
Maven Dependency jcommon >> 1.0.15
You should include the dependency code given in this page to add Maven Dependency of jfree >> jcommon version1.0.15 in your project
Maven Dependency jcommon >> 1.0.2
You should include the dependency code given in this page to add Maven Dependency of jfree >> jcommon version1.0.2 in your project
Maven Dependency jcommon >> 1.0.4
You should include the dependency code given in this page to add Maven Dependency of jfree >> jcommon version1.0.4 in your project
Maven Dependency jcommon >> 1.0.5
You should include the dependency code given in this page to add Maven Dependency of jfree >> jcommon version1.0.5 in your project
Maven Dependency jcommon >> 1.0.6
You should include the dependency code given in this page to add Maven Dependency of jfree >> jcommon version1.0.6 in your project

Ads