Upgraded to 1.0.13 from 1.0.6 and graphs not generating

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
rohans
Posts: 4
Joined: Wed Jul 07, 2010 3:07 am
antibot: No, of course not.

Upgraded to 1.0.13 from 1.0.6 and graphs not generating

Post by rohans » Wed Jul 07, 2010 8:21 pm

I switched from version 1.0.6 to 1.0.13 and although all my graphs worked fine previously, after the upgrade nothing is displayed. Infact the entire panel seems to be missing.

Also i just got the Demo Collection for 1.0.13; im trying to get a DateAxis to display as follows:

http://picasaweb.google.com.br/ricardo. ... 0976390434

MultipleAxisDemo3 shows multiple domain axes; but how would you move the axis label to the center between the ticks.

Code: Select all

		DateAxis dateAxis = (DateAxis) plot.getDomainAxis(0);
		DateTickUnit unitMonth = new DateTickUnit(DateTickUnitType.MONTH, 1, new java.text.SimpleDateFormat("MMM"));
		dateAxis.setTickUnit(unitMonth, false, true);
		
		try {
			DateAxis yearAxis = (DateAxis) dateAxis.clone();
			DateTickUnit unitYear = new DateTickUnit(DateTickUnitType.YEAR, 1, new java.text.SimpleDateFormat("yyyy"));
			yearAxis.setTickUnit(unitYear, false, true);
			plot.setDomainAxis(1, yearAxis, true);
			plot.mapDatasetToDomainAxis(0, 1);
			plot.setDomainAxisLocation(1, AxisLocation.BOTTOM_OR_RIGHT, true);
			
		}
		catch(Exception e) {
			
		}
Finally, I cannot figure out how to have the domain and ranges axex detaches from the main graph (a small space between the axis line and the graph box) as in DualAxisDemo1

thanks in advance

Locked