Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
<!--
    plot a set of IManagedObjects with a different
    region-level styles
-->
<plotSet plots="${dataArray}" indexVar="index">
    <c:choose>
        <c:when test="${index%2 == 0}">
            <style>
                .......
            </style>
        </c:when>
        <c:otherwise>
            <style>
                .......
            </style>
        </c:otherwise>
    </c:choose>
</plotSet>
Code Block
<\!-\-
&nbsp;&nbsp;&nbsp; 
    plot a set of IManagedObjects with overlays and
&nbsp;&nbsp;&nbsp; 
    individual data styles 
\-->
<plotSet plots="${dataArray}" indexVar="index">
&nbsp;&nbsp;&nbsp; <style>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;    <style>
        .......
&nbsp;&nbsp;&nbsp;    </style>

&nbsp;&nbsp;&nbsp;    <plot var="${dataArray1\[index\]}">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <style>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;        <style>
            .......
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;        </style>
&nbsp;&nbsp;&nbsp;    </plot>
&nbsp;&nbsp;&nbsp;    <plot var="${dataArray2\[index\]}">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <style>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;        <style>
            .......
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;        </style>
&nbsp;&nbsp;&nbsp;    </plot>
</plotSet>
Code Block
<\!-\-
&nbsp;&nbsp;&nbsp; 
    plot a set of IManagedObjects with overlays.
&nbsp;&nbsp;&nbsp; 
    Make regions clickable and with unique styles.
&nbsp;&nbsp;&nbsp; \    **\* FIXME: don't know how to call setters on an Object\!
\-->
<plotSet plots="${dataArray}" indexVar="index" regionVar="region">
&nbsp;&nbsp;&nbsp;    set region.title = "Region ${index}"
&nbsp;&nbsp;&nbsp;    set region.href ....
&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;    
    <plot var="${dataArray1\[index\]}">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <style>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;        <style>
            .......
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;        </style>
&nbsp;&nbsp;&nbsp;    </plot>
&nbsp;&nbsp;&nbsp;    <plot var="${dataArray2\[index\]}">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <style>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;        <style>
            .......
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;        </style>
&nbsp;&nbsp;&nbsp;    </plot>
</plotSet>