Page 1 of 1

Need 'hard start' series

Posted: Sat Jul 16, 2011 11:04 pm
by dglass
The subject of this message is horrible, but I don't know how else to phrase it.

The following data generates the chart shown below:

1293868800,50,0
1293955200,50,0
1305874800,50,40
1305961200,50,40
1325404800,50,40
1325491200,0,40
1329379200,0,40
1329465600,0,40
LiveCodeScreenSnapz029.jpg
Which is close to what I want but I need the purple series to start like the pink series, i.e. no color until the first value, rather than the sloped line from 0 up to the provided value.

Is there a way to do that?

Re: Need 'hard start' series

Posted: Sat Jul 16, 2011 11:18 pm
by BvG
1293868800,50,0
1293955200,50,0
1305874800,50,0 -- I added this line
1305874800,50,40
1305961200,50,40
1325404800,50,40
1325491200,0,40
1329379200,0,40
1329465600,0,40

Re: Need 'hard start' series

Posted: Sat Jul 16, 2011 11:21 pm
by dglass
So that's two data lines with the same time value? Interesting.

Thanks!

Can you explain why that works? I've been avoiding adding lines with duplicate time values.

Re: Need 'hard start' series

Posted: Sat Jul 16, 2011 11:26 pm
by BvG
Well, you can also subtract one, making the data 100% failsave:

1293868800,50,0
1293955200,50,0
1305874799,50,0
1305874800,50,40
1305961200,50,40
1325404800,50,40
1325491200,0,40
1329379200,0,40
1329465600,0,40

the main reason it works with the same date is inherent behaviour. The data is assembled with repeat loops, and those can only go one direction, down the list, if you switch the lines around, you'll get the weird behaviour that you feared might happen :)

Re: Need 'hard start' series

Posted: Sun Jul 17, 2011 1:54 am
by dglass
BvG wrote: the main reason it works with the same date is inherent behaviour. The data is assembled with repeat loops, and those can only go one direction, down the list, if you switch the lines around, you'll get the weird behaviour that you feared might happen :)
Ah.

Thanks!