I have used JFreeChart library in java to draw one line with points ie. plot.
The points have two kind of color - green or blue. Below is some sample with different colors. I would like to display two legend for this one single line because of different color. Is it possible?
I know that with two lines (green and blue) this should be simply solved with two legends but this is not our case. With this approach the JFreeChart offers some option to automatically generate the legends as below code.
private void myMethod () {
JFreeChart j = new JFreeChart(title, titleFont, plot, createLegend);
}
Thanks.