Bar Charts
Posted: Mon Dec 05, 2005 11:12 am
I've played with this for a while, and searched the forum, but don't see anything about this, exactly.
I'm trying to make a bar chart, but DPlot doesn't what to work with anything except evenly spaced ordinates. Okay, I can trick DPlot into believing that, but how could I go back and add time labels for when the event happened?
Here is a small set of data:
Seconds, On-Load, Off-Load
12/2/2005 8:00:08, 8, 6
12/2/2005 8:00:20, 6, 3
12/2/2005 8:00:34, 11, 7
12/2/2005 8:00:49, 8, 4
Actually, I'd like this to look like this:
Seconds, On-Load, Off-Load
12/2/2005 8:00:08, 8
12/2/2005 8:00:14, , 6
12/2/2005 8:00:20, 6
12/2/2005 8:00:23, , 3
12/2/2005 8:00:34, 11
12/2/2005 8:00:41, , 7
12/2/2005 8:00:49, 8
12/2/2005 8:00:53, , 4
with each bar anchored at the end of the time it happened, and the size of the bar representing the duration (of the preceding event).
Basically, I'd like an XY version of a bar chart, I guess. Excel has a bubble chart, which this could also be, but the bubble concept doesn't seem to tell as much of the story as I would like. And their bar chart doesn't like the x-scale to be anything finer than days.
I plan to embellish the plot with reference lines showing max-On-Load duration, min-Off-Load duration.
If I'm completely off base, ie, something stone cold obvious is staring me in the face and I've missed it, please advise - I'm growing more and more stupid as I age, I think!
Thanks for any suggestions.
Jon
I'm trying to make a bar chart, but DPlot doesn't what to work with anything except evenly spaced ordinates. Okay, I can trick DPlot into believing that, but how could I go back and add time labels for when the event happened?
Here is a small set of data:
Seconds, On-Load, Off-Load
12/2/2005 8:00:08, 8, 6
12/2/2005 8:00:20, 6, 3
12/2/2005 8:00:34, 11, 7
12/2/2005 8:00:49, 8, 4
Actually, I'd like this to look like this:
Seconds, On-Load, Off-Load
12/2/2005 8:00:08, 8
12/2/2005 8:00:14, , 6
12/2/2005 8:00:20, 6
12/2/2005 8:00:23, , 3
12/2/2005 8:00:34, 11
12/2/2005 8:00:41, , 7
12/2/2005 8:00:49, 8
12/2/2005 8:00:53, , 4
with each bar anchored at the end of the time it happened, and the size of the bar representing the duration (of the preceding event).
Basically, I'd like an XY version of a bar chart, I guess. Excel has a bubble chart, which this could also be, but the bubble concept doesn't seem to tell as much of the story as I would like. And their bar chart doesn't like the x-scale to be anything finer than days.
I plan to embellish the plot with reference lines showing max-On-Load duration, min-Off-Load duration.
If I'm completely off base, ie, something stone cold obvious is staring me in the face and I've missed it, please advise - I'm growing more and more stupid as I age, I think!
Thanks for any suggestions.
Jon