I just did something like what you describe and the following method worked 
very fast:

Don't use layers. Instead use Nan's to cut the line. So for eg. An array 
1,2,3,nan,4,5,6 will draw as two lines.

Reply via email to