Subversion Repositories SmartDukaan

Rev

Rev 30778 | Rev 30780 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 30778 Rev 30779
Line 69... Line 69...
69
                            #set($dataPoint=0)
69
                            #set($dataPoint=0)
70
                        #end
70
                        #end
71
                        #set($total=$total+$dataPoint)
71
                        #set($total=$total+$dataPoint)
72
                    #end
72
                    #end
73
                    #foreach($dataPoint in $dataPoints)
73
                    #foreach($dataPoint in $dataPoints)
-
 
74
                        #if(!$dataPoint)
-
 
75
                            #set($dataPoint=0)
-
 
76
                        #end
74
                        #set($percentage=($dataPoint/$total)*100)
77
                        #set($percentage=($dataPoint/$total)*100)
75
                        #set($count = $velocityCount - 1)
78
                        #set($count = $velocityCount - 1)
76
                        <span style="background-color: $bgColors.get($count);width:$percentage%;margin:0;padding:0 ">$labels.get($count)
79
                        <span style="background-color: $bgColors.get($count);width:$percentage%;margin:0;padding:0 ">$labels.get($count)
77
                            - #if($dataPoint) $dataPoint #else 0#end</span>
80
                            - $dataPoint</span>
78
                    #end
81
                    #end
79
                </td>
82
                </td>
80
            </tr>
83
            </tr>
81
            #end
84
            #end
82
        </tbody>
85
        </tbody>