DomainMarker

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
Anakin
Posts: 4
Joined: Sun Feb 26, 2012 9:37 am
antibot: No, of course not.

DomainMarker

Post by Anakin » Sun Feb 26, 2012 10:04 am

Hi,
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.

Locked