Jump to content

About chart ?


SOYHU

Recommended Posts

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.java

Errors 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 me

Thanks in advanced.

 

Post edited by: SOYHU, at: 2007/10/19 03:15

Post edited by: SOYHU, at: 2007/10/19 07:48

Link to comment
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

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 me

thank you very much.

Post edited by: SOYHU, at: 2007/10/20 12:41

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...