Missing values in LinePlot
Brought to you by:
sflexus
Hi,
first of all: great graph packet! I'm glad I found it!
1) I'd like to hide parts of the line of a line plot
(time/value plot) if there are missing values during a
period of time. Is that possible?
2) Is it possible to change the color of the line of one
data series. Lets say it's red in the beginning and blue
after a certain point of time. I know that I can produce
two line plots, but I was wondering whether there is a
direct way.
THANKS, Stefan
Modified LinePlot
Logged In: YES
user_id=661196
To point one:
After all I looked into the class LinePlot and found out that it's
not so hard to implement missing values. (see attachment).
What do you think of that?
Logged In: YES
user_id=345880
Both no. Override the plot class and implement your
own draw() method which will skip points or change
the line color. See the original draw() method - it's
quite simple to implement your own one.
If you design it so that new Plot class will have
javabean-like properties for setting multiple color and
so on, post a new class source here and I will add it
to the project. Source code won't be altered.
If you feel you wish to join the development team
to improve and extend library functionality you are
welcome as well.
Logged In: YES
user_id=661196
Thanks for your hints.
Yes, it was quite easy to implement some changes.
Unfortunatelly I'm not familiar with javabeans stuff up till now,
but I come back to this idea, when I do.
Cheers, Stefan