[Laszlo-checkins] r5842 - sandbox/jcrowley/lzcharts

jcrowley@openlaszlo.org jcrowley at openlaszlo.org
Fri Jul 27 14:48:39 PDT 2007


Author: jcrowley
Date: 2007-07-27 14:48:35 -0700 (Fri, 27 Jul 2007)
New Revision: 5842

Modified:
   sandbox/jcrowley/lzcharts/linechart.lzx
Log:
Updating linechart.



Modified: sandbox/jcrowley/lzcharts/linechart.lzx
===================================================================
--- sandbox/jcrowley/lzcharts/linechart.lzx	2007-07-27 20:58:07 UTC (rev 5841)
+++ sandbox/jcrowley/lzcharts/linechart.lzx	2007-07-27 21:48:35 UTC (rev 5842)
@@ -461,6 +461,10 @@
         <method name="drawPoint" args="pshape, xposit, yposit, pddata,
             pborder, pvis, pbthick, popac">
             <![CDATA[
+            if(pborder == null){
+                pborder = "#000000";
+                pbthick = 0;
+            }
             this.dataclip.datapane.ptdraw.strokeStyle = pborder;
             this.dataclip.datapane.ptdraw.fillStyle = pvis;
             this.dataclip.datapane.ptdraw.lineWidth = pbthick;
@@ -503,10 +507,12 @@
                     yposit  - (rad * .2));
                 this.dataclip.datapane.ptdraw.lineTo(xposit, yposit - rad);
             }
+            if(pvis != null && typeof pvis != 'undefined'){
+                this.dataclip.datapane.ptdraw.fill();
+            }
             if(pborder != null && typeof pborder != 'undefined'){
                 this.dataclip.datapane.ptdraw.stroke();
             }
-            this.dataclip.datapane.ptdraw.fill();
             ]]>
         </method>
     </class>



More information about the Laszlo-checkins mailing list