CategoryPlot and XYplot in the same image

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
fran_jo
Posts: 3
Joined: Wed Mar 07, 2012 5:12 pm
antibot: No, of course not.

CategoryPlot and XYplot in the same image

Post by fran_jo » Mon May 07, 2012 9:24 am

Hello everyone!

Which is the best way to combine two different kind of plots, in my case Category and XYPlot? I cannot find any good answer. Which api should I look at to achieve this?

Greetings!

fran_jo
Posts: 3
Joined: Wed Mar 07, 2012 5:12 pm
antibot: No, of course not.

Re: CategoryPlot and XYplot in the same image

Post by fran_jo » Mon May 07, 2012 9:27 am

Uops! I forgot to tell you... each plot has each own axes, they do not share the X domain neither the dataset...

John Matthews
Posts: 513
Joined: Wed Sep 12, 2007 3:18 pm

Re: CategoryPlot and XYplot in the same image

Post by John Matthews » Mon May 07, 2012 11:27 am

Construct a ChartPanel from each chart and add each such panel to a GridLayout(0, 1).

Locked