I'll start by saying that I'm new to JFreeChart. I was trying to add a DomainMarker, so i wrote the following code:
Code: Select all
XYPlot plot = (XYPlot) chart.getPlot();
IntervalMarker marker=new IntervalMarker(200,400,Color.WHITE);
plot.addDomainMarker(marker);
But, from what i see, it draws an area from the bottom to the top of the panel. What i want to do is draw the area from the x axys to the intersection with the chart in a specific domain (some sort of combination between an AreaChart-limited to a specific domain- and a XYLineChart). Does JFreeChart support this kind of operation? If yes, could you give me a hint how to do it please?
Thank you in advance.