Hi!
I'm trying to create a chart with dynamic data and several plots. I'm using the CombinedDomainXYPlot and the idea is to build sth like DynamicDataDemo3.java... but using markers to reflect dangerous levels in the graph, I mean, for example if a graph reaches one upper limit I want to create a red marker to show this state (a kind of "DANGER", from 13:30 to 13:35 the graph reached dangerous levels).
The problem is that if I want to add a marker dynamically, I don't know how I can change the endValue of the IntervalMarker, to update this marker every time new data is coming... I haven't found a method in IntervalMarker to do so.
Can you help me?
Thanks in advance.
IntervalMarker and CombinedDomainXYPlot
-
- JFreeChart Project Leader
- Posts: 11734
- Joined: Fri Mar 14, 2003 10:29 am
- antibot: No, of course not.
- Contact:
The markers were originally immutable to avoid having to write a whole listener/change event mechanism to support modifications. But now I think it would make sense to add the change event mechanism and make these markers updatable.
David Gilbert
JFreeChart Project Leader
Read my blog
Support JFree via the Github sponsorship program
JFreeChart Project Leader

