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.*;
import org.jfree.data.*;
import org.jfree.chart.renderer.category.*;
import org.jfree.chart.plot.*;
import java.awt.*;
public class BarExample1{
public static void main(String arg[]){
DefaultCategoryDataset dataset = new DefaultCategoryDataset();
dataset.setValue(2, "Marks", "Rahul");
dataset.setValue(7, "Marks", "Vinod");
dataset.setValue(4, "Marks", "Deepak");
dataset.setValue(9, "Marks", "Prashant");
dataset.setValue(6, "Marks", "Chandan");
JFreeChart chart = ChartFactory.createBarChart
("BarChart using JFreeChart","Student", "Marks", dataset,
PlotOrientation.VERTICAL, false,true, false);
chart.setBackgroundPaint(Color.yellow);
chart.getTitle().setPaint(Color.blue);
CategoryPlot p = chart.getCategoryPlot();
p.setRangeGridlinePaint(Color.red);
ChartFrame frame1=new ChartFrame("Bar Chart",chart);
frame1.setVisible(true);
frame1.setSize(400,350);
}
}
IN THIS WE DONT REQUIRE THE RECTANGLEINSETS NA THEN WHY ITS GIVING ME THE ERROR.
tHE IMPORT FILE RECTANGLEINSETS IS NOT THERE IN THE JAR FILE.
SO HOW TO SOLVE THIS PROBLEM?
PLZ HELP.
View Answers
December 26, 2011 at 12:01 PM
Download jcommon-1.0.16.jar. This jar contains the required class file.
Related Tutorials/Questions & Answers:
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.... THE RECTANGLEINSETS NA THEN WHY ITS GIVING ME THE
ERROR.
tHE IMPORT FILE
JFREE error againJFREE 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
Advertisements
JFree chart package errorJFree 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 create errorJfree 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 errorJfree 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
Pie chart Jfree create errorPie 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
Dynamin Jfree chart in jsp---errorDynamin
Jfree chart in jsp---error While compiling this CODE...("Problem in creating chart.");
}
%>
Generated
error:
<...
error details.
Have a look at the following link:
http://www.roseindia.net/jsp
Jfree exceptionJfree 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 exceptionJfree 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 - Java BeginnersJFree 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 Beginnersjfree 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 filejfree 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 filejfree 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 filejfree 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 filejfree 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 - Java Beginnersjfree 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 BeginnersJFREE 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
errorerror while iam compiling iam getting expected
error Error- Error- Hello, I would like to know about XSD file.
I try to print XML file but I am getting
error SAXException-- says
Content is not allowed in prolog.
Please help me
errorerror i have 404
error in my program plz tell me yhe solution about
errorerror i have 404
error in my program plz tell me yhe solution about
error/ServletUserEnquiryForm.shtml
getting an
error given below
SQLException caught: [Microsoft][ODBC SQL Server Driver]COUNT field incorrect or syntax
error
please suggest
ErrorError I have created ajax with php for state and city. When I change state then city will not come in dropdown list and it give me
error as 'Unknown Runtime
Error'.
This
error come only in IE browser, but in other brower
errorerror java.lang.unsupportedclassversionerror:bad major version at offset 6
how to solve this????
Hi,
Please check the version of framework used and also the JDK version.ADS_TO_REPLACE_1
This type
error also comes
errorerror When I deploye the example I have this message
cannot Deploy HelloWorld
Deployment
Error for module: HelloWorld:
Error occurred during deployment: Exception while deploying the app [HelloWorld
error!!!!!!!!!error!!!!!!!!! st=con.createStatement();
int a=Integer.parseInt(txttrno.getText());
String b=txttname.getText();
String c=txtfrom.getText();
String d=txtto.getText
error!!!!!!!!!error!!!!!!!!! st=con.createStatement();
int a=Integer.parseInt(txttrno.getText());
String b=txttname.getText();
String c=txtfrom.getText();
String d=txtto.getText
error!!!!!!!!!error!!!!!!!!! st=con.createStatement();
int a=Integer.parseInt(txttrno.getText());
String b=txttname.getText();
String c=txtfrom.getText();
String d=txtto.getText
ErrorError Hi. I am getting
error in the following code after the line I have commented as
ERROR. How to solve this. Thanks in advance.
package...;");
//
ERROR
out.println(" var pattern
ErrorError Hi. I am getting
error in the following code after the line I have commented as
ERROR. How to solve this. Thanks in advance.
package...;");
//
ERROR
out.println(" var pattern
ErrorError Hi. I am getting
error in the following code after the line I have commented as
ERROR. How to solve this. Thanks in advance.
package...;");
//
ERROR
out.println(" var pattern = /^\d{3,5
ErrorError Hi. I am getting
error in the following code after the line I have commented as
ERROR. How to solve this. Thanks in advance.
package...;");
//
ERROR
out.println(" var pattern
error"+it);
}
}
this is my program i am getting an
error saying cannot find symbol class stringADS
errorerror whats the
error..............
import java.util.Scanner;
public class g {
public static void main(String[] args) {
Scanner s=new Scanner(System.in);
int d,x,y;
System.out.println("Enter the first number
Jfree chart problem - Swing AWTJfree 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
JFree 3D Bar Chart not displaying in JSP - Java3DJFree 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 AWThybrid 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