combining stacked vertical bar chart and line plots

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

combining stacked vertical bar chart and line plots

Post by Paul Casey » Fri May 24, 2002 12:40 am

I have tried -- unsuccessfully to combine a StackedVerticalBarChart with line plots so th3 lines overlay the bar chart

Can anyone tell me if this should be possible and if so how?

I must say I am relatively new to JFreeChart but have found the VerticalStackedBarChart to be perfect for what I want to do and the color mapping to 60+ colors I need was SO straightforward.

Essentially I am trying to recreate Matlab graphics in pure Java so I can port Matlab GUIs to Java.


Thanks for any help

Bill Kelemen

Re: combining stacked vertical bar chart and line plots

Post by Bill Kelemen » Fri May 24, 2002 4:30 am

CombinedPlots only allows ValueAxis (DateAxis or NumberAxis) for the x-axis. StackedVerticalBarChart uses a CategoryAxis.

David Gilbert

Re: combining stacked vertical bar chart and line plots

Post by David Gilbert » Fri May 24, 2002 7:02 am

Jeremy Bowman has contributed a new OverlaidVerticalCategoryPlot class which is in the CVS repository on SourceForge. This ought to make it possible to do what you want.

I haven't given it a good workout yet, so if you try it out let me know if there are any issues.

Regards,

DG.

paul casey

Re: combining stacked vertical bar chart and line plots

Post by paul casey » Mon May 27, 2002 11:21 am

Thanks for the reply.
I found the class mentioned but found I needed to download other files that had changed too. In the end I downloaded the whole JFreechart devlopement set of source files using cvs! Did I really need to do this? Still actually haven't managed to compile them correctly as I get errors when trying to run the examples. Seems I haven't done the javac calls to compile the source code correctly.

Paul

David Gilbert

Re: combining stacked vertical bar chart and line plots

Post by David Gilbert » Mon May 27, 2002 6:09 pm

Yes, you did need to download everything with CVS. A new release ought to be ready in the next two weeks if you prefer the packaged up version of JFreeChart.

Regards,

DG.

Paul Casey

Re: combining stacked vertical bar chart and line plots

Post by Paul Casey » Tue May 28, 2002 12:10 am

Sorry to be a pain ... but


Are there instructions on the compiling of the JFreeChart source code? Or perhaps a batch file for instance. I don't seem to be getting he dependencies right with my probably naive attempts to do it by mulitple calls to javac for each of the directories


Paul

paul casey

Re: combining stacked vertical bar chart and line plots

Post by paul casey » Tue May 28, 2002 12:56 pm

Sorry I see now that all that information has already been given with the install instructions. Forget that last post. I just need to read the documentation and get my javac skills up.

Paul

Locked