Displaying own dates on X-axis

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
appala_sri
Posts: 3
Joined: Fri Jul 01, 2005 6:17 am
Location: INDIA,HYDERABAD
Contact:

Displaying own dates on X-axis

Post by appala_sri » Fri Jul 01, 2005 9:02 am

Actually my requirement is to avoid the default dates that are getting displayed. I want my dates that are coming from database should display there.

Can I have a solution for this problem.

Waiting for the solution
Srinivas..

mtdew

Same Issue

Post by mtdew » Fri Jul 15, 2005 10:57 pm

I also am looking for the same solution.

Currently, I have the Tick Unit set to 6 months.

It is showing 01/95, 07/95, 1/96, etc... on the X-Axis.

I would like it to show the ticks beginning with Dec.

12/94, 6/95, 12/95, etc...

How do we customize what dates it shows ?

j0medina
Posts: 17
Joined: Sat Aug 30, 2003 12:30 am
Location: Milwaukee
Contact:

Post by j0medina » Mon Jul 18, 2005 4:17 pm

I just use a CategoryAxis passing in values to my dataset that I get out of the database through a query. The query makes sure the data is all there and in order.

mtdew

Category Axis

Post by mtdew » Mon Jul 18, 2005 7:47 pm

Can you use CategoryAxis with XY Plots ?

Does anyone have a code example ?

Locked