change axis order

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
hidetsugu
Posts: 3
Joined: Thu Mar 17, 2011 5:52 pm
antibot: No, of course not.

change axis order

Post by hidetsugu » Fri Mar 18, 2011 12:09 pm

Hi all,

i'm integrating jfreechart with oracle forms. I used an example found online, but it's a little basic and i'm having some trouble making mine graphs work correctly. So i have this code:

Code: Select all

hArgs := FBEAN.CREATE_ARGLIST;
     FBEAN.CLEAR_ARGLIST(hArgs);
     FBEAN.add_arg(hArgs, to_char(:VENDAS.MES));
     FBEAN.add_arg(hArgs, to_char(:VENDAS.SUBTOTAL));
     FBEAN.add_arg(hArgs, 'SubTotal');
     FBean.invoke( hBean, 1, 'setValue', hArgs);
     while :System.Last_Record <> 'TRUE' 
     loop
	     next_record;
	     hArgs := FBEAN.CREATE_ARGLIST;
	     FBEAN.CLEAR_ARGLIST(hArgs);
	     FBEAN.add_arg(hArgs, to_char(:VENDAS.MES));
	     FBEAN.add_arg(hArgs, to_char(:VENDAS.SUBTOTAL));	          	     
       FBEAN.add_arg(hArgs, 'SubTotal');
	     FBean.invoke( hBean, 1, 'setValue', hArgs);	
 	   end loop;
This is working but the :VENDAS.MES is on y axis, and VENDAS.SUBTOTAL is on x axis and i wanted to switch that. Just change the order of lines doesn't do the trick. It causes the graph to not work. Why is this? How can i get it my way?

Locked