I wonder how to merge two charts and display on one frame. I have managed to create 'bell-curve'(Normal distribution) through JFreeChart with XYLine. However, I would like some part to be 'shaded', therefore would be good to use XYArea Chart. I have found an example (this website) how to use two XYLine Charts and display them. Please, see screenshot provided - blue line is prefered XYArea Chart display from that point.
I would appreciate any help. Please, bear in mind I am new to charts plotting in java, please explain 'clearly' how to achieve desired result.
P.S. is that posible to remove legends for red and blue lines ? (bottom legends on screenshot)
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.