Jump to content

About chart ?


SOYHU

Recommended Posts

How i can develop the below chart by plot x and y axis as string(not number)values?

 

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.

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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