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
combining stacked vertical bar chart and line plots
Re: combining stacked vertical bar chart and line plots
CombinedPlots only allows ValueAxis (DateAxis or NumberAxis) for the x-axis. StackedVerticalBarChart uses a CategoryAxis.
Re: combining stacked vertical bar chart and line plots
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.
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.
Re: combining stacked vertical bar chart and line plots
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
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
Re: combining stacked vertical bar chart and line plots
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.
Regards,
DG.
Re: combining stacked vertical bar chart and line plots
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
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
Re: combining stacked vertical bar chart and line plots
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
Paul