svn commit: r991486 - /ofbiz/branches/jquery/framework/common/webcommon/includes/flotCharts/Pie.ftl

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r991486 - /ofbiz/branches/jquery/framework/common/webcommon/includes/flotCharts/Pie.ftl

jleroux@apache.org
Author: jleroux
Date: Wed Sep  1 09:19:01 2010
New Revision: 991486

URL: http://svn.apache.org/viewvc?rev=991486&view=rev
Log:
A last patch from Sascha Rodekamp "jQuery plotter implementation" (https://issues.apache.org/jira/browse/OFBIZ-3905) - OFBIZ-3905

Pie chart % added

Modified:
    ofbiz/branches/jquery/framework/common/webcommon/includes/flotCharts/Pie.ftl

Modified: ofbiz/branches/jquery/framework/common/webcommon/includes/flotCharts/Pie.ftl
URL: http://svn.apache.org/viewvc/ofbiz/branches/jquery/framework/common/webcommon/includes/flotCharts/Pie.ftl?rev=991486&r1=991485&r2=991486&view=diff
==============================================================================
--- ofbiz/branches/jquery/framework/common/webcommon/includes/flotCharts/Pie.ftl (original)
+++ ofbiz/branches/jquery/framework/common/webcommon/includes/flotCharts/Pie.ftl Wed Sep  1 09:19:01 2010
@@ -57,13 +57,30 @@ jQuery(document).ready( function(){
     {
             series: {
                     pie: {
-                            show: true
+                            show: true,
+                            label: {
+                                show: true,
+                                radius: 3/4,
+
+                                formatter: function(label, series){
+                                    return '<div style="font-size:8pt;text-align:center;padding:2px;color:white;">'+label+'<br/>'+Math.round(series.percent)+'%</div>';
+                                },
+                                background: {
+                                    opacity: 0.5 ,
+                                    color: '#000000'
+                                },
+                            }
+
                     }
             },
             grid: {
                 autoHighlight: true,
                 hoverable: true
+            },
+             legend: {
+            show: false
             }
+
     });
 
 });