<html><head><style type='text/css'>body { font-family: 'Times New Roman'; font-size: 12pt; color: #000000}</style></head><body>The feature request below can be added with the following change.<br>-- Gregory Davis<br><br><br>line 3207 and 3208<br>-values=>[@gt], -default=>param("${ds}_tType")),<br>checkbox(-name=>"${ds}_tSTACK", -values=>'Y', -label=>'')),<br><br>can be replaced with: <br>-values=>[@gt], -default=>param("${ds}_tType")), br,<br>checkbox(-name=>"${ds}_tSTACK", -values=>'Y', -label=>'<', -title=>'Whether to stack these elements on top of each other'),<br>checkbox(-name=>"${ds}_STACK", -values=>'Y', -label=>'^', -title=>'Whether to stack these elements on top of the previous one')),<br><br><br>from:<br>http://web.taranis.org/pipermail/drraw-users/2007q1/000095.html<br><br><pre>On Jan 21, Greg Davis wrote:<br>|<i> Thanks for your help. About the regex stacking, i may not have been <br></i>|<i> clear on the question. What im trying to do is stack two template based <br></i>|<i> DSs on a single graph each template based DS would contain the data from <br></i>|<i> about 40 rrds for a total of 80 actual DSs. So lets say template DS A <br></i>|<i> would be 40 stacked areas in blue and green and Template DS B would be <br></i>|<i> another 40 stacked areas in red and yellow stacked on top of Template A. <br></i>|<i> When I add the second template DS it always begins the stack at 0. So <br></i>|<i> far I've had to Add template A and then use 40 regular DSs stacked on <br></i>|<i> top of template A's output. Is this the only way to do it?<br></i><br>Which version of drraw are you using?<br><br>With version 2.1.1, i'm able to do this by using "STACK" as<br>the type in the drop down list, but this doesn't let one<br>control what is stacked (it's based on the previous entry).<br><br>With 2.2a2, you can't really do it.<br><br>If you want a headache, read on.<br>you could do this:<br>Say your template DS A procudes a0, a1, ... a39<br>Set Element to "UN,0,$,IF" and Formula to "+"<br>This gives a new CDEF a which is a0 + a1 + ... + a39 (skipping<br>NaNs).<br><br>Now, if you template DS A produces b0, b1, ... b39<br>Set the CDEF to "b0,$,EQ,a,0,IF,$,+"<br><br>The problem is you "b0,$,EQ" compares the value of b0 with $<br>(which is b0 or b1 or ... b39), but you really want to compare<br>the variable names, not their values. So while it may work<br>most of the time, there'll be cases when it doesn't.</pre><br></body></html>