setTickUnit in DateAxis

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
Mala

setTickUnit in DateAxis

Post by Mala » Fri Jan 17, 2003 12:45 am

Hi,


Here is my code:

XYPlot plot = chart.getXYPlot();
DateAxis axis = (HorizontalDateAxis)plot.getDomainAxis();
axis.setTickUnit(new DateTickUnit(DateTickUnit.DAY, 2,
new java.text.SimpleDateFormat("d")));

I get this following runtime error.

java.lang.NoSuchMethodError: com.jrefinery.chart.DateAxis.setTickUnit(Lcom/jrefinery/chart/DateTickUnit;)V
at client.LineGraph.doPost(LineGraph.java:55)


Can someone help me with this please?

Thanks.

Mala

Re: setTickUnit in DateAxis

Post by Mala » Sun Jan 19, 2003 11:43 pm

Hello,

Can someone help me with this? I seem to be stuck just with this graph - the others are fine.

Thank you.

Locked