Need 'hard start' series

Get help and support using chartsEngine for LiveCode.

Moderators: heatherlaine, BvG

Post Reply
dglass
Posts: 519
Joined: Thu Sep 24, 2009 9:10 pm
Location: California
Contact:

Need 'hard start' series

Post by dglass » Sat Jul 16, 2011 11:04 pm

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?

BvG
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 1236
Joined: Sat Apr 08, 2006 1:10 pm
Location: Zurich
Contact:

Re: Need 'hard start' series

Post by BvG » Sat Jul 16, 2011 11:18 pm

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
Various teststacks and stuff:
http://bjoernke.com

Chat with other RunRev developers:
chat.freenode.net:6666 #livecode

dglass
Posts: 519
Joined: Thu Sep 24, 2009 9:10 pm
Location: California
Contact:

Re: Need 'hard start' series

Post by dglass » Sat Jul 16, 2011 11:21 pm

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.

BvG
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 1236
Joined: Sat Apr 08, 2006 1:10 pm
Location: Zurich
Contact:

Re: Need 'hard start' series

Post by BvG » Sat Jul 16, 2011 11:26 pm

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 :)
Various teststacks and stuff:
http://bjoernke.com

Chat with other RunRev developers:
chat.freenode.net:6666 #livecode

dglass
Posts: 519
Joined: Thu Sep 24, 2009 9:10 pm
Location: California
Contact:

Re: Need 'hard start' series

Post by dglass » Sun Jul 17, 2011 1:54 am

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!

Post Reply

Return to “chartsEngine”