SOYHU Posted October 19, 2007 Share Posted October 19, 2007 Can i develop the below chart by plot x and y axis as string(not number)values? size=245]http://www.jasperforge.org/components/com_joomlaboard/uploaded/images/chart-595d72bc06bc394a5224413853c6edcb.jpg i would like to display string(not number) value on y axis, i fetch string column from database for plotting the graph, while i was running the report the error message be generated as below: |v------------------------------------------------- ÂCompiling to file... C:YHU2.jasperE-commerce_Reporttest_graph.jasper -> C:YHU2.jasperE-commerce_Reporttest_graph.javaErrors compiling C:YHU2.jasperE-commerce_Reporttest_graph.jasper. net.sf.jasperreports.engine.JRException:ÂErrorsÂwereÂencounteredÂwhenÂcompilingÂreportÂexpressionsÂclassÂfile: 1.ÂsoyhucolumnÂcannotÂbeÂresolved ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂvalueÂ=Â(java.lang.Comparable)(soyhucolumn); ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ<-----------> 2.ÂCannotÂcastÂfromÂStringÂtoÂNumber ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂvalueÂ=Â(java.lang.Number)(((java.lang.String)field_NAME.getValue())); ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ<-----------------------------------------------------------> ------------------------------------------------- please advise meThanks in advanced. Post edited by: SOYHU, at: 2007/10/19 03:15Post edited by: SOYHU, at: 2007/10/19 07:48 Link to comment Share on other sites More sharing options...
svenn Posted October 19, 2007 Share Posted October 19, 2007 Why do you want to display strings instead of numbers? In the end are they not going to be the same value just a different format? Link to comment Share on other sites More sharing options...
SOYHU Posted October 20, 2007 Author Share Posted October 20, 2007 I want to plotting a chart ( coordinate x and y ) by using a string as a parameter. this is my chart | | | | v v size=332]http://www.jasperforge.org/components/com_joomlaboard/uploaded/images/result1.JPG please advise methank you very much.Post edited by: SOYHU, at: 2007/10/20 12:41 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now