Jump to content
We've recently updated our Privacy Statement, available here ×

Date time format in Time Series graph


anjumprevaiz

Recommended Posts

Hello

 

 i am using time series graph of jfree charts and i am formating the date and time along x-axis using the code as follow and as show in the image

        DateAxis axis = (DateAxis) plot.getDomainAxis();
        axis.setDateFormatOverride(new SimpleDateFormat("MM/dd/yy"+" "+"HH:mm"));

 

  but i want to show the date and time in two lines as e.g date in frst line and time in 2nd line as under

06/01/11 
  08:30

any suggestions

thanks in adavance.

 

 

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