xad Posted February 18, 2009 Share Posted February 18, 2009 I have a simple chart that I'm having problems with.I have a query which returns 2 types, one of which is a long and another as a type time broken down in hourly increments.I want to simply have the time displayed (2:00, 3:00, 4:00 etc) on the X-Axis Expression but I keep getting an error stating that the variable cannot be cast from time to Number. I tried casting it to ints but no luck.Here is my expression listSeries Expression = Yesterday's Date (java.sql.Date)X Value Expression = Hour (java.sql.Time)Y Value Expression = Totalhits (java.sql.Long)Label Expression = none.What am I doing wrong? I simply want the each X hour to display Y hits. Link to comment Share on other sites More sharing options...
xad Posted February 18, 2009 Author Share Posted February 18, 2009 After doing some digging, I found that I needed to use the YX Bar which gives you an option to categorize by time. Link to comment Share on other sites More sharing options...
xad Posted February 18, 2009 Author Share Posted February 18, 2009 Still.. I can only use the YX bar graph when I want to use time on the X Axis? What if I wanted to do a line graph. Every other graph has category or xy datasets. 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